diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-11-23 09:30:45 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-11-23 09:30:45 -0200 |
commit | c5112f7b156ad2565bad3035c8c4008c3e7716a4 (patch) | |
tree | 05207653589cdf751be1f1a4647e9aca6881aa78 /lvm.c | |
parent | c231a5e2b68d6c32bc54b201f844590ae1a50c39 (diff) | |
download | lua-c5112f7b156ad2565bad3035c8c4008c3e7716a4.tar.gz lua-c5112f7b156ad2565bad3035c8c4008c3e7716a4.tar.bz2 lua-c5112f7b156ad2565bad3035c8c4008c3e7716a4.zip |
details (comments)
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.263 2015/11/17 16:00:28 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.264 2015/11/19 19:16:22 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 | */ |
@@ -1254,7 +1254,7 @@ void luaV_execute (lua_State *L) { | |||
1254 | h = hvalue(ra); | 1254 | h = hvalue(ra); |
1255 | last = ((c-1)*LFIELDS_PER_FLUSH) + n; | 1255 | last = ((c-1)*LFIELDS_PER_FLUSH) + n; |
1256 | if (last > h->sizearray) /* needs more space? */ | 1256 | if (last > h->sizearray) /* needs more space? */ |
1257 | luaH_resizearray(L, h, last); /* pre-allocate it at once */ | 1257 | luaH_resizearray(L, h, last); /* preallocate it at once */ |
1258 | for (; n > 0; n--) { | 1258 | for (; n > 0; n--) { |
1259 | TValue *val = ra+n; | 1259 | TValue *val = ra+n; |
1260 | luaH_setint(L, h, last--, val); | 1260 | luaH_setint(L, h, last--, val); |