aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c2
1 files changed, 1 insertions, 1 deletions
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) {
1043 } 1043 }
1044 else if (cast_uint(i) < asize) { 1044 else if (cast_uint(i) < asize) {
1045 lua_pushinteger(L, i); 1045 lua_pushinteger(L, i);
1046 arr2obj(t, i, s2v(L->top.p)); 1046 arr2obj(t, cast_uint(i), s2v(L->top.p));
1047 api_incr_top(L); 1047 api_incr_top(L);
1048 lua_pushnil(L); 1048 lua_pushnil(L);
1049 } 1049 }