mirror of
https://github.com/lua/lua.git
synced 2026-06-08 08:03:49 +00:00
Functions with vararg tables don't need hidden args.
Vararg functions with vararg tables don't use the arguments hidden in the stack; therfore, it doesn't need to build/keep them.
This commit is contained in:
2
ldo.c
2
ldo.c
@@ -487,7 +487,7 @@ static void rethook (lua_State *L, CallInfo *ci, int nres) {
|
||||
int ftransfer;
|
||||
if (isLua(ci)) {
|
||||
Proto *p = ci_func(ci)->p;
|
||||
if (p->flag & PF_ISVARARG)
|
||||
if (p->flag & PF_VAHID)
|
||||
delta = ci->u.l.nextraargs + p->numparams + 1;
|
||||
}
|
||||
ci->func.p += delta; /* if vararg, back to virtual 'func' */
|
||||
|
||||
Reference in New Issue
Block a user