aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-02-15 11:18:34 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-02-15 11:18:34 -0300
commit7237eb3f1c480d6bc7fe2832ddd36f2137fb69d9 (patch)
tree618bb144df3f37b000fc12db0738a5d3ec3efbef /ltable.c
parent165389b27bc54e7c5214276db177e3ef75226f18 (diff)
downloadlua-7237eb3f1c480d6bc7fe2832ddd36f2137fb69d9.tar.gz
lua-7237eb3f1c480d6bc7fe2832ddd36f2137fb69d9.tar.bz2
lua-7237eb3f1c480d6bc7fe2832ddd36f2137fb69d9.zip
Fixed warnings from different compilers
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ltable.c b/ltable.c
index dc4621aa..cb7eb648 100644
--- a/ltable.c
+++ b/ltable.c
@@ -995,7 +995,8 @@ static int finishnodeset (Table *t, const TValue *slot, TValue *val) {
995 } 995 }
996 else if (isabstkey(slot)) 996 else if (isabstkey(slot))
997 return HNOTFOUND; /* no slot with that key */ 997 return HNOTFOUND; /* no slot with that key */
998 else return (cast(Node*, slot) - t->node) + HFIRSTNODE; /* node encoded */ 998 else /* return node encoded */
999 return cast_int((cast(Node*, slot) - t->node)) + HFIRSTNODE;
999} 1000}
1000 1001
1001 1002