Fixed warnings from different compilers

This commit is contained in:
Roberto Ierusalimschy
2024-02-15 11:18:34 -03:00
parent 165389b27b
commit 7237eb3f1c
4 changed files with 10 additions and 6 deletions

View File

@@ -995,7 +995,8 @@ static int finishnodeset (Table *t, const TValue *slot, TValue *val) {
}
else if (isabstkey(slot))
return HNOTFOUND; /* no slot with that key */
else return (cast(Node*, slot) - t->node) + HFIRSTNODE; /* node encoded */
else /* return node encoded */
return cast_int((cast(Node*, slot) - t->node)) + HFIRSTNODE;
}