Fix compile w/ vs2012

This commit is contained in:
Michael Davidsaver
2023-08-28 14:00:27 +02:00
committed by Dirk Zimoch
parent 5b84a86ccd
commit e291ca0a03

View File

@@ -23,6 +23,7 @@
#include "cantProceed.h"
#include "epicsAssert.h"
#include "epicsStdio.h"
#include "epicsTypes.h"
#include "epicsMutex.h"
#include "epicsThread.h"
#include "errMdef.h"
@@ -104,14 +105,13 @@ int errSymbolAdd(long errNum, const char *name)
ERRNUMNODE **phashnode = NULL;
ERRNUMNODE *pNew = NULL;
int modnum = (epicsUInt16) (errNum >> 16);
epicsUInt16 hashInd = errhash(errNum);
if (modnum < MIN_MODULE_NUM)
return S_err_invCode;
initErrorHashTable();
epicsUInt16 hashInd = errhash(errNum);
epicsMutexLock(errHashTable.tableMutexId);
phashnode = (ERRNUMNODE**)&errHashTable.table[hashInd];
pNextNode = (ERRNUMNODE*) *phashnode;