diff options
-rw-r--r-- | src/lj_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_parse.c b/src/lj_parse.c index 29def7b4..2fecaefc 100644 --- a/src/lj_parse.c +++ b/src/lj_parse.c | |||
@@ -1761,7 +1761,7 @@ static void expr_table(LexState *ls, ExpDesc *e) | |||
1761 | TValue k, *v; | 1761 | TValue k, *v; |
1762 | if (!t) { /* Create template table on demand. */ | 1762 | if (!t) { /* Create template table on demand. */ |
1763 | BCReg kidx; | 1763 | BCReg kidx; |
1764 | t = lj_tab_new(fs->L, narr, hsize2hbits(nhash)); | 1764 | t = lj_tab_new(fs->L, needarr ? narr : 0, hsize2hbits(nhash)); |
1765 | kidx = const_gc(fs, obj2gco(t), LJ_TTAB); | 1765 | kidx = const_gc(fs, obj2gco(t), LJ_TTAB); |
1766 | fs->bcbase[pc].ins = BCINS_AD(BC_TDUP, freg-1, kidx); | 1766 | fs->bcbase[pc].ins = BCINS_AD(BC_TDUP, freg-1, kidx); |
1767 | } | 1767 | } |