diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-08-09 17:58:29 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-08-09 17:58:29 -0300 |
commit | 92afcf2823e5dfbe9bb10b0ed62306b6015fcfb8 (patch) | |
tree | 8e360f9491a5d547a8be1aaddce780adb9fcea6b /lvm.c | |
parent | b5bf7d9ef414ce05da8523b966d94252c32a4010 (diff) | |
download | lua-92afcf2823e5dfbe9bb10b0ed62306b6015fcfb8.tar.gz lua-92afcf2823e5dfbe9bb10b0ed62306b6015fcfb8.tar.bz2 lua-92afcf2823e5dfbe9bb10b0ed62306b6015fcfb8.zip |
no more 'luaH_setstr (used only once) + 'luaH_setint' receives value
to be set.
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.140 2011/06/02 19:31:40 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.141 2011/06/09 18:24: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 | */ |
@@ -808,7 +808,7 @@ void luaV_execute (lua_State *L) { | |||
808 | luaH_resizearray(L, h, last); /* pre-allocate it at once */ | 808 | luaH_resizearray(L, h, last); /* pre-allocate it at once */ |
809 | for (; n > 0; n--) { | 809 | for (; n > 0; n--) { |
810 | TValue *val = ra+n; | 810 | TValue *val = ra+n; |
811 | setobj2t(L, luaH_setint(L, h, last--), val); | 811 | luaH_setint(L, h, last--, val); |
812 | luaC_barrierback(L, obj2gco(h), val); | 812 | luaC_barrierback(L, obj2gco(h), val); |
813 | } | 813 | } |
814 | L->top = ci->top; /* correct top (in case of previous open call) */ | 814 | L->top = ci->top; /* correct top (in case of previous open call) */ |