diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-21 15:19:42 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-21 15:19:42 -0200 |
commit | 84488c56700fe1fddf9745283140a80879f59ff6 (patch) | |
tree | 7d1561043962704641b442617e395e3042a2611b | |
parent | 5142e630bf91e2353f4397e03593ab56b3a07b86 (diff) | |
download | lua-84488c56700fe1fddf9745283140a80879f59ff6.tar.gz lua-84488c56700fe1fddf9745283140a80879f59ff6.tar.bz2 lua-84488c56700fe1fddf9745283140a80879f59ff6.zip |
small bug: previous call may change `base'
-rw-r--r-- | lvm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 1.266 2002/11/21 15:16:04 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.267 2002/11/21 15:46:44 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 | */ |
@@ -552,7 +552,8 @@ StkId luaV_execute (lua_State *L) { | |||
552 | int b = GETARG_B(i); | 552 | int b = GETARG_B(i); |
553 | int c = GETARG_C(i); | 553 | int c = GETARG_C(i); |
554 | luaV_concat(L, c-b+1, c); /* may change `base' (and `ra') */ | 554 | luaV_concat(L, c-b+1, c); /* may change `base' (and `ra') */ |
555 | setobjs2s(XRA(i), base+b); | 555 | base = L->base; |
556 | setobjs2s(RA(i), base+b); | ||
556 | luaC_checkGC(L); | 557 | luaC_checkGC(L); |
557 | break; | 558 | break; |
558 | } | 559 | } |