errSymLib Fix from Ivo Hanak

Fixes lp: #1907077
This commit is contained in:
Andrew Johnson
2020-12-08 10:10:03 -06:00
parent e20151439b
commit 5f0d52cd5c

View File

@@ -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);