aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2026-04-23 18:00:23 -0300
committerRoberto I <roberto@inf.puc-rio.br>2026-04-23 18:00:23 -0300
commitae23e726018bd31a25c1279600328d90207ec81c (patch)
tree475b1d0fff4886a96b4f282cade8adcb69fc6397 /ltests.c
parent4c5d5063a54c0088729b16fb25a333f0f9f836b0 (diff)
downloadlua-ae23e726018bd31a25c1279600328d90207ec81c.tar.gz
lua-ae23e726018bd31a25c1279600328d90207ec81c.tar.bz2
lua-ae23e726018bd31a25c1279600328d90207ec81c.zip
new macro 'setnilvalue2s'
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 6ae5f472..2bf5545a 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1145,7 +1145,7 @@ static int table_query (lua_State *L) {
1145 if (!tagisempty(*getArrTag(t, i))) 1145 if (!tagisempty(*getArrTag(t, i)))
1146 arr2obj(t, cast_uint(i), s2v(L->top.p)); 1146 arr2obj(t, cast_uint(i), s2v(L->top.p));
1147 else 1147 else
1148 setnilvalue(s2v(L->top.p)); 1148 setnilvalue2s(L->top.p);
1149 api_incr_top(L); 1149 api_incr_top(L);
1150 lua_pushnil(L); 1150 lua_pushnil(L);
1151 } 1151 }