diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-10-30 14:25:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-10-30 14:25:59 -0300 |
commit | 43c8e5bded052801f54a7439d18933b83570eb82 (patch) | |
tree | 97f6d1e020110e14c798537c7bbb1f90feed4044 /lvm.c | |
parent | b8b709b6d40c5c18d9b8ef33bb50afc55f048ab8 (diff) | |
download | lua-43c8e5bded052801f54a7439d18933b83570eb82.tar.gz lua-43c8e5bded052801f54a7439d18933b83570eb82.tar.bz2 lua-43c8e5bded052801f54a7439d18933b83570eb82.zip |
Full abstraction for representation of array values
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1845,7 +1845,7 @@ void luaV_execute (lua_State *L, CallInfo *ci) { | |||
1845 | luaH_resizearray(L, h, last); /* preallocate it at once */ | 1845 | luaH_resizearray(L, h, last); /* preallocate it at once */ |
1846 | for (; n > 0; n--) { | 1846 | for (; n > 0; n--) { |
1847 | TValue *val = s2v(ra + n); | 1847 | TValue *val = s2v(ra + n); |
1848 | setobj2t(L, &h->array[last - 1], val); | 1848 | obj2arr(h, last, val); |
1849 | last--; | 1849 | last--; |
1850 | luaC_barrierback(L, obj2gco(h), val); | 1850 | luaC_barrierback(L, obj2gco(h), val); |
1851 | } | 1851 | } |