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.h | |
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.h')
-rw-r--r-- | lvm.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.h,v 2.50 2018/02/21 12:54:26 roberto Exp roberto $ | 2 | ** $Id: lvm.h,v 2.51 2018/02/23 13:13:31 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 | */ |
@@ -84,7 +84,7 @@ | |||
84 | #define luaV_fastgeti(L,t,k,slot) \ | 84 | #define luaV_fastgeti(L,t,k,slot) \ |
85 | (!ttistable(t) \ | 85 | (!ttistable(t) \ |
86 | ? (slot = NULL, 0) /* not a table; 'slot' is NULL and result is 0 */ \ | 86 | ? (slot = NULL, 0) /* not a table; 'slot' is NULL and result is 0 */ \ |
87 | : (slot = (l_castS2U(k) - 1u < hvalue(t)->sizearray) \ | 87 | : (slot = (l_castS2U(k) - 1u < hvalue(t)->alimit) \ |
88 | ? &hvalue(t)->array[k - 1] : luaH_getint(hvalue(t), k), \ | 88 | ? &hvalue(t)->array[k - 1] : luaH_getint(hvalue(t), k), \ |
89 | !isempty(slot))) /* result not empty? */ | 89 | !isempty(slot))) /* result not empty? */ |
90 | 90 | ||