diff --git a/modules/libcom/src/error/errSymLib.c b/modules/libcom/src/error/errSymLib.c index 05a4b3eec..693f34dca 100644 --- a/modules/libcom/src/error/errSymLib.c +++ b/modules/libcom/src/error/errSymLib.c @@ -132,7 +132,7 @@ int errSymbolAdd(long errNum, const char *name) ***************************************************************/ static void errRawCopy(long statusToDecode, char *pBuf, size_t bufLength) { - epicsUInt16 modnum = (statusToDecode >>= 16) & 0xffff; + epicsUInt16 modnum = (statusToDecode >> 16) & 0xffff; epicsUInt16 errnum = statusToDecode & 0xffff; assert(bufLength > 20);