diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-28 14:17:53 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-28 14:17:53 -0300 |
commit | ade585bdf9e286a0ec01796763ded6701c6b1a8f (patch) | |
tree | a578c006fc70e54114e1056bbbf8a014ccc30721 /lvm.c | |
parent | 04c41444e22740119d3c017830276d6590b09747 (diff) | |
download | lua-ade585bdf9e286a0ec01796763ded6701c6b1a8f.tar.gz lua-ade585bdf9e286a0ec01796763ded6701c6b1a8f.tar.bz2 lua-ade585bdf9e286a0ec01796763ded6701c6b1a8f.zip |
no more LUA_FIRSTINDEX
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.33 2005/03/16 16:59:21 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.34 2005/03/18 18:01:37 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 | */ |
@@ -760,7 +760,7 @@ StkId luaV_execute (lua_State *L, int nexeccalls) { | |||
760 | if (c == 0) c = cast(int, *pc++); | 760 | if (c == 0) c = cast(int, *pc++); |
761 | runtime_check(L, ttistable(ra)); | 761 | runtime_check(L, ttistable(ra)); |
762 | h = hvalue(ra); | 762 | h = hvalue(ra); |
763 | last = ((c-1)*LFIELDS_PER_FLUSH) + n + LUA_FIRSTINDEX - 1; | 763 | last = ((c-1)*LFIELDS_PER_FLUSH) + n; |
764 | if (last > h->sizearray) /* needs more space? */ | 764 | if (last > h->sizearray) /* needs more space? */ |
765 | luaH_resizearray(L, h, last); /* pre-alloc it at once */ | 765 | luaH_resizearray(L, h, last); /* pre-alloc it at once */ |
766 | for (; n > 0; n--) { | 766 | for (; n > 0; n--) { |