aboutsummaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2026-04-28 13:44:29 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2026-04-28 13:44:29 -0300
commit0da6d320f757bc9241a33df06f3597598845cf0a (patch)
treecf079dcc2794de6d4bb7a22726932f2511c37ade /lcode.c
parentae23e726018bd31a25c1279600328d90207ec81c (diff)
downloadlua-0da6d320f757bc9241a33df06f3597598845cf0a.tar.gz
lua-0da6d320f757bc9241a33df06f3597598845cf0a.tar.bz2
lua-0da6d320f757bc9241a33df06f3597598845cf0a.zip
Details
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lcode.c b/lcode.c
index 33cbd687..e0024432 100644
--- a/lcode.c
+++ b/lcode.c
@@ -663,11 +663,11 @@ static int boolT (FuncState *fs) {
663** Add nil to list of constants and return its index. 663** Add nil to list of constants and return its index.
664*/ 664*/
665static int nilK (FuncState *fs) { 665static int nilK (FuncState *fs) {
666 TValue k, v; 666 lua_State *L = fs->ls->L;
667 setnilvalue(&v); 667 TValue k;
668 /* cannot use nil as key; instead use table itself */ 668 /* cannot use nil as key; instead use table itself */
669 sethvalue(fs->ls->L, &k, fs->kcache); 669 sethvalue(L, &k, fs->kcache);
670 return k2proto(fs, &k, &v); 670 return k2proto(fs, &k, &G(L)->nilvalue);
671} 671}
672 672
673 673