|
|
@ -1,5 +1,5 @@ |
|
|
|
/*
|
|
|
|
** $Id: ldo.c,v 2.43 2006/09/19 13:57:50 roberto Exp roberto $ |
|
|
|
** $Id: ldo.c,v 2.44 2006/10/10 17:40:17 roberto Exp roberto $ |
|
|
|
** Stack and Call structure of Lua |
|
|
|
** See Copyright Notice in lua.h |
|
|
|
*/ |
|
|
@ -278,11 +278,8 @@ int luaD_precall (lua_State *L, StkId func, int nresults) { |
|
|
|
Proto *p = cl->p; |
|
|
|
luaD_checkstack(L, p->maxstacksize); |
|
|
|
func = restorestack(L, funcr); |
|
|
|
if (!p->is_vararg) { /* no varargs? */ |
|
|
|
if (!p->is_vararg) /* no varargs? */ |
|
|
|
base = func + 1; |
|
|
|
if (L->top > base + p->numparams) |
|
|
|
L->top = base + p->numparams; |
|
|
|
} |
|
|
|
else { /* vararg function */ |
|
|
|
int nargs = cast_int(L->top - func) - 1; |
|
|
|
base = adjust_varargs(L, p, nargs); |
|
|
|