diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-06-15 11:14:20 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-06-15 11:14:20 -0300 |
commit | 6e600695f8398843a156ce02023f731c6d687ae8 (patch) | |
tree | a3e8ef5078e24b5fbdfdfbd89e949bb6c078b90f /lvm.c | |
parent | 06127927ffb4eb8459523f6c07bf8f22390c31b9 (diff) | |
download | lua-6e600695f8398843a156ce02023f731c6d687ae8.tar.gz lua-6e600695f8398843a156ce02023f731c6d687ae8.tar.bz2 lua-6e600695f8398843a156ce02023f731c6d687ae8.zip |
field 'sizearray' in struct 'Table' changed to 'alimit', which can
be used as a hint for '#t'
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); |