commit 79acf5ea6083fe4aebeb24740d25ddf35654944a
parent cbc59592ff684b646b21766a66630df1f7974b25
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Fri, 8 Jun 2001 16:19:40 -0300
details
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/lvm.c b/lvm.c
@@ -1,5 +1,5 @@
/*
-** $Id: lvm.c,v 1.181 2001/06/08 12:29:27 roberto Exp roberto $
+** $Id: lvm.c,v 1.182 2001/06/08 19:00:57 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -371,9 +371,7 @@ StkId luaV_execute (lua_State *L, const Closure *cl, StkId base) {
adjust_varargs(L, base, tf->numparams);
if (base > L->stack_last - tf->maxstacksize)
luaD_stackerror(L);
- while (L->top < base+tf->maxstacksize)
- setnilvalue(L->top++);
- L->top = base + tf->maxstacksize;
+ luaD_adjusttop(L, base + tf->maxstacksize);
pc = tf->code;
L->ci->pc = &pc;
linehook = L->linehook;