commit 84488c56700fe1fddf9745283140a80879f59ff6
parent 5142e630bf91e2353f4397e03593ab56b3a07b86
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Thu, 21 Nov 2002 15:19:20 -0200
small bug: previous call may change `base'
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lvm.c b/lvm.c
@@ -1,5 +1,5 @@
/*
-** $Id: lvm.c,v 1.266 2002/11/21 15:16:04 roberto Exp roberto $
+** $Id: lvm.c,v 1.267 2002/11/21 15:46:44 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -552,7 +552,8 @@ StkId luaV_execute (lua_State *L) {
int b = GETARG_B(i);
int c = GETARG_C(i);
luaV_concat(L, c-b+1, c); /* may change `base' (and `ra') */
- setobjs2s(XRA(i), base+b);
+ base = L->base;
+ setobjs2s(RA(i), base+b);
luaC_checkGC(L);
break;
}