GRIM: Fix warning due to the hash value now being unsigned

This commit is contained in:
Bastien Bouclet 2017-12-07 19:24:17 +01:00
parent 4dca903dc0
commit 11cce71b06

View File

@ -53,7 +53,7 @@ static uintptr hashindex(TObject *ref) {
lua_error("unexpected type to index table");
h = 0; // to avoid warnings
}
return (h >= 0 ? h : -(h + 1));
return h;
}
int32 present(Hash *t, TObject *key) {