summaryrefslogtreecommitdiff
path: root/src/lj_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_parse.c')
-rw-r--r--src/lj_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_parse.c b/src/lj_parse.c
index 1de07e92..4aa23a1b 100644
--- a/src/lj_parse.c
+++ b/src/lj_parse.c
@@ -1140,7 +1140,7 @@ static void collectk(FuncState *fs, GCproto *pt)
1140 checklimitgt(fs, fs->nkn, BCMAX_D+1, "constants"); 1140 checklimitgt(fs, fs->nkn, BCMAX_D+1, "constants");
1141 checklimitgt(fs, fs->nkgc, BCMAX_D+1, "constants"); 1141 checklimitgt(fs, fs->nkgc, BCMAX_D+1, "constants");
1142 nkgc = round_nkgc(fs->nkgc); 1142 nkgc = round_nkgc(fs->nkgc);
1143 sizek = (MSize)(nkgc*sizeof(MRef) + fs->nkn*sizeof(lua_Number)); 1143 sizek = (MSize)(nkgc*sizeof(GCRef) + fs->nkn*sizeof(lua_Number));
1144 kstart = lj_mem_newt(fs->L, sizek, GCRef); 1144 kstart = lj_mem_newt(fs->L, sizek, GCRef);
1145 if (nkgc) setgcrefnull(kstart[0]); /* May be uninitialized otherwise. */ 1145 if (nkgc) setgcrefnull(kstart[0]); /* May be uninitialized otherwise. */
1146 pt->k.gc = kstart + nkgc; 1146 pt->k.gc = kstart + nkgc;