diff options
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 2.10 2004/12/03 20:50:25 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 2.11 2004/12/07 18:31:16 roberto Exp $ |
3 | ** Lua Parser | 3 | ** Lua Parser |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -547,7 +547,7 @@ static void constructor (LexState *ls, expdesc *t) { | |||
547 | check_match(ls, '}', '{', line); | 547 | check_match(ls, '}', '{', line); |
548 | lastlistfield(fs, &cc); | 548 | lastlistfield(fs, &cc); |
549 | SETARG_B(fs->f->code[pc], luaO_int2fb(cc.na)); /* set initial array size */ | 549 | SETARG_B(fs->f->code[pc], luaO_int2fb(cc.na)); /* set initial array size */ |
550 | SETARG_C(fs->f->code[pc], luaO_log2(cc.nh)+1); /* set initial table size */ | 550 | SETARG_C(fs->f->code[pc], luaO_int2fb(cc.nh+1)); /* set initial table size */ |
551 | } | 551 | } |
552 | 552 | ||
553 | /* }====================================================================== */ | 553 | /* }====================================================================== */ |