HashGetValue: warning: comparison between pointer and integer

GCC14 --without-tk --without-tcl
Related issue: https://github.com/RTimothyEdwards/magic/issues/323
This commit is contained in:
Darryl L. Miles
2024-10-09 20:35:19 -04:00
committed by Tim Edwards
parent de5c54e20b
commit 0a4e2a5a27
+2 -2
View File
@@ -1700,7 +1700,7 @@ DBCellNewDef(cellName)
cellName = UNNAMED;
entry = HashFind(&dbCellDefTable, cellName);
if (HashGetValue(entry) != (ClientData) NULL)
if (HashGetValue(entry) != NULL)
return ((CellDef *) NULL);
cellDef = DBCellDefAlloc();
@@ -1861,7 +1861,7 @@ DBCellRenameDef(cellDef, newName)
ASSERT(HashGetValue(oldEntry) == (ClientData) cellDef, "DBCellRenameDef");
newEntry = HashFind(&dbCellDefTable, newName);
if (HashGetValue(newEntry) != (ClientData) NULL)
if (HashGetValue(newEntry) != NULL)
return (FALSE);
HashSetValue(oldEntry, (ClientData) NULL);