From 79acf5ea6083fe4aebeb24740d25ddf35654944a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 8 Jun 2001 16:20:02 -0300 Subject: [PATCH] details --- lvm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lvm.c b/lvm.c index c775b6c5..64df3762 100644 --- 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;