diff options
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.356 2018/05/30 14:25:52 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.357 2018/06/01 16:51:34 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 | */ |
@@ -1766,7 +1766,7 @@ void luaV_execute (lua_State *L, CallInfo *ci) { | |||
1766 | } | 1766 | } |
1767 | h = hvalue(s2v(ra)); | 1767 | h = hvalue(s2v(ra)); |
1768 | last = ((c-1)*LFIELDS_PER_FLUSH) + n; | 1768 | last = ((c-1)*LFIELDS_PER_FLUSH) + n; |
1769 | if (last > h->sizearray) /* needs more space? */ | 1769 | if (last > luaH_realasize(h)) /* needs more space? */ |
1770 | luaH_resizearray(L, h, last); /* preallocate it at once */ | 1770 | luaH_resizearray(L, h, last); /* preallocate it at once */ |
1771 | for (; n > 0; n--) { | 1771 | for (; n > 0; n--) { |
1772 | TValue *val = s2v(ra + n); | 1772 | TValue *val = s2v(ra + n); |