diff options
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1124,7 +1124,7 @@ void luaV_finishOp (lua_State *L) { | |||
1124 | 1124 | ||
1125 | 1125 | ||
1126 | void luaV_execute (lua_State *L, CallInfo *ci) { | 1126 | void luaV_execute (lua_State *L, CallInfo *ci) { |
1127 | const CallInfo *origci = ci; | 1127 | CallInfo * const origci = ci; |
1128 | LClosure *cl; | 1128 | LClosure *cl; |
1129 | TValue *k; | 1129 | TValue *k; |
1130 | StkId base; | 1130 | StkId base; |
@@ -1624,7 +1624,7 @@ void luaV_execute (lua_State *L, CallInfo *ci) { | |||
1624 | vmcase(OP_TAILCALL) { | 1624 | vmcase(OP_TAILCALL) { |
1625 | int b = GETARG_B(i); /* number of arguments + 1 (function) */ | 1625 | int b = GETARG_B(i); /* number of arguments + 1 (function) */ |
1626 | int nparams1 = GETARG_C(i); | 1626 | int nparams1 = GETARG_C(i); |
1627 | /* delat is virtual 'func' - real 'func' (vararg functions) */ | 1627 | /* delta is virtual 'func' - real 'func' (vararg functions) */ |
1628 | int delta = (nparams1) ? ci->u.l.nextraargs + nparams1 : 0; | 1628 | int delta = (nparams1) ? ci->u.l.nextraargs + nparams1 : 0; |
1629 | if (b != 0) | 1629 | if (b != 0) |
1630 | L->top = ra + b; | 1630 | L->top = ra + b; |
@@ -1648,7 +1648,7 @@ void luaV_execute (lua_State *L, CallInfo *ci) { | |||
1648 | updatetrap(ci); | 1648 | updatetrap(ci); |
1649 | updatestack(ci); /* stack may have been relocated */ | 1649 | updatestack(ci); /* stack may have been relocated */ |
1650 | ci->func -= delta; | 1650 | ci->func -= delta; |
1651 | luaD_poscall(L, ci, cast_int(L->top - ra)); | 1651 | luaD_poscall(L, ci, cast_int(L->top - ra)); /* finish caller */ |
1652 | goto ret; | 1652 | goto ret; |
1653 | } | 1653 | } |
1654 | ci->func -= delta; | 1654 | ci->func -= delta; |