From 25a2dac2bcab84d1f1ce8c49b673b4a032a29a4a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 24 Oct 2024 15:33:25 -0300 Subject: Always use unsigned int for indexing table-arrays --- ltests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 3534d8d5..2dafbee5 100644 --- a/ltests.c +++ b/ltests.c @@ -1043,7 +1043,7 @@ static int table_query (lua_State *L) { } else if (cast_uint(i) < asize) { lua_pushinteger(L, i); - arr2obj(t, i, s2v(L->top.p)); + arr2obj(t, cast_uint(i), s2v(L->top.p)); api_incr_top(L); lua_pushnil(L); } -- cgit v1.2.3-55-g6feb