summaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-03-28 14:17:53 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-03-28 14:17:53 -0300
commitade585bdf9e286a0ec01796763ded6701c6b1a8f (patch)
treea578c006fc70e54114e1056bbbf8a014ccc30721 /lvm.c
parent04c41444e22740119d3c017830276d6590b09747 (diff)
downloadlua-github-ade585bdf9e286a0ec01796763ded6701c6b1a8f.tar.gz
no more LUA_FIRSTINDEX
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lvm.c b/lvm.c
index 1fe0b420..5456e74d 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
/*
-** $Id: lvm.c,v 2.33 2005/03/16 16:59:21 roberto Exp roberto $
+** $Id: lvm.c,v 2.34 2005/03/18 18:01:37 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -760,7 +760,7 @@ StkId luaV_execute (lua_State *L, int nexeccalls) {
if (c == 0) c = cast(int, *pc++);
runtime_check(L, ttistable(ra));
h = hvalue(ra);
- last = ((c-1)*LFIELDS_PER_FLUSH) + n + LUA_FIRSTINDEX - 1;
+ last = ((c-1)*LFIELDS_PER_FLUSH) + n;
if (last > h->sizearray) /* needs more space? */
luaH_resizearray(L, h, last); /* pre-alloc it at once */
for (; n > 0; n--) {