aboutsummaryrefslogtreecommitdiff
path: root/lvm.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 /lvm.c
parent4c5d5063a54c0088729b16fb25a333f0f9f836b0 (diff)
downloadlua-ae23e726018bd31a25c1279600328d90207ec81c.tar.gz
lua-ae23e726018bd31a25c1279600328d90207ec81c.tar.bz2
lua-ae23e726018bd31a25c1279600328d90207ec81c.zip
new macro 'setnilvalue2s'
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lvm.c b/lvm.c
index 96ae1639..f9e87b61 100644
--- a/lvm.c
+++ b/lvm.c
@@ -303,7 +303,7 @@ lu_byte luaV_finishget (lua_State *L, const TValue *t, TValue *key,
303 else { /* 't' is a table */ 303 else { /* 't' is a table */
304 tm = fasttm(L, hvalue(t)->metatable, TM_INDEX); /* table's metamethod */ 304 tm = fasttm(L, hvalue(t)->metatable, TM_INDEX); /* table's metamethod */
305 if (tm == NULL) { /* no metamethod? */ 305 if (tm == NULL) { /* no metamethod? */
306 setnilvalue(s2v(val)); /* result is nil */ 306 setnilvalue2s(val); /* result is nil */
307 return LUA_VNIL; 307 return LUA_VNIL;
308 } 308 }
309 /* else will try the metamethod */ 309 /* else will try the metamethod */