diff options
Diffstat (limited to 'lcode.c')
| -rw-r--r-- | lcode.c | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -264,8 +264,7 @@ static int nil_constant (FuncState *fs) { | |||
| 264 | 264 | ||
| 265 | void luaK_setcallreturns (FuncState *fs, expdesc *e, int nresults) { | 265 | void luaK_setcallreturns (FuncState *fs, expdesc *e, int nresults) { |
| 266 | if (e->k == VCALL) { /* expression is an open function call? */ | 266 | if (e->k == VCALL) { /* expression is an open function call? */ |
| 267 | if (nresults == LUA_MULTRET) nresults = NO_REG; | 267 | SETARG_C(getcode(fs, e), nresults+1); |
| 268 | SETARG_C(getcode(fs, e), nresults); | ||
| 269 | if (nresults == 1) { /* `regular' expression? */ | 268 | if (nresults == 1) { /* `regular' expression? */ |
| 270 | e->k = VNONRELOC; | 269 | e->k = VNONRELOC; |
| 271 | e->u.i.info = GETARG_A(getcode(fs, e)); | 270 | e->u.i.info = GETARG_A(getcode(fs, e)); |
