From 7237eb3f1c480d6bc7fe2832ddd36f2137fb69d9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 15 Feb 2024 11:18:34 -0300 Subject: Fixed warnings from different compilers --- ltable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ltable.c') 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) { } 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; } -- cgit v1.2.3-55-g6feb