diff --git a/src/ioc/dbStatic/dbStaticLib.c b/src/ioc/dbStatic/dbStaticLib.c index e1538cbb0..43b7d88d2 100644 --- a/src/ioc/dbStatic/dbStaticLib.c +++ b/src/ioc/dbStatic/dbStaticLib.c @@ -1793,9 +1793,9 @@ long dbFindFieldPart(DBENTRY *pdbentry,const char **ppname) bottom = 0; test = (top + bottom) / 2; while (1) { - size_t compare = strncmp(papsortFldName[test], pname, nameLen); + int compare = strncmp(papsortFldName[test], pname, nameLen); if (compare == 0) - compare = strlen(papsortFldName[test]) - nameLen; + compare = (int) (strlen(papsortFldName[test]) - nameLen); if (compare == 0) { dbFldDes *pflddes = precordType->papFldDes[sortFldInd[test]];