diff options
Diffstat (limited to 'lparser.c')
| -rw-r--r-- | lparser.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lparser.c,v 2.1 2003/12/10 12:13:36 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 2.2 2004/03/12 19:53:56 roberto Exp roberto $ |
| 3 | ** Lua Parser | 3 | ** Lua Parser |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -483,6 +483,7 @@ static void lastlistfield (FuncState *fs, struct ConsControl *cc) { | |||
| 483 | if (cc->v.k == VCALL) { | 483 | if (cc->v.k == VCALL) { |
| 484 | luaK_setcallreturns(fs, &cc->v, LUA_MULTRET); | 484 | luaK_setcallreturns(fs, &cc->v, LUA_MULTRET); |
| 485 | luaK_codeABx(fs, OP_SETLISTO, cc->t->info, cc->na-1); | 485 | luaK_codeABx(fs, OP_SETLISTO, cc->t->info, cc->na-1); |
| 486 | cc->na--; /* do not count last expression (unknown number of elements) */ | ||
| 486 | } | 487 | } |
| 487 | else { | 488 | else { |
| 488 | if (cc->v.k != VVOID) | 489 | if (cc->v.k != VVOID) |
