aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-02-18 10:50:08 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-02-18 10:50:08 -0200
commitd84cc9d2dbf1f44e7126fe3ed9a82eed9757a63a (patch)
tree138fa29b32678c2ff8b903c0c756a3a508fefe86
parent7d45a5f48ff32a4e09a1734de23823943d6a6b28 (diff)
downloadlua-d84cc9d2dbf1f44e7126fe3ed9a82eed9757a63a.tar.gz
lua-d84cc9d2dbf1f44e7126fe3ed9a82eed9757a63a.tar.bz2
lua-d84cc9d2dbf1f44e7126fe3ed9a82eed9757a63a.zip
small bug
-rw-r--r--lvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lvm.c b/lvm.c
index 9ab8aa38..04007de6 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 2.23 2005/01/10 18:33:37 roberto Exp roberto $ 2** $Id: lvm.c,v 2.24 2005/02/18 12:40:02 roberto Exp roberto $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -620,9 +620,9 @@ StkId luaV_execute (lua_State *L, int nexeccalls) {
620 int aux; 620 int aux;
621 StkId func = ci->func; 621 StkId func = ci->func;
622 StkId pfunc = (ci+1)->func; /* previous function index */ 622 StkId pfunc = (ci+1)->func; /* previous function index */
623 if (L->openupval) luaF_close(L, base);
623 base = ci->base = ci->func + ((ci+1)->base - pfunc); 624 base = ci->base = ci->func + ((ci+1)->base - pfunc);
624 L->base = base; 625 L->base = base;
625 if (L->openupval) luaF_close(L, base);
626 for (aux = 0; pfunc+aux < L->top; aux++) /* move frame down */ 626 for (aux = 0; pfunc+aux < L->top; aux++) /* move frame down */
627 setobjs2s(L, func+aux, pfunc+aux); 627 setobjs2s(L, func+aux, pfunc+aux);
628 ci->top = L->top = func+aux; /* correct top */ 628 ci->top = L->top = func+aux; /* correct top */