diff options
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.340 2018/02/15 15:34:29 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.341 2018/02/17 19:20:00 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 | */ |
@@ -223,7 +223,7 @@ void luaV_finishset (lua_State *L, const TValue *t, TValue *key, | |||
223 | /* no metamethod and (now) there is an entry with given key */ | 223 | /* no metamethod and (now) there is an entry with given key */ |
224 | setobj2t(L, cast(TValue *, slot), val); /* set its new value */ | 224 | setobj2t(L, cast(TValue *, slot), val); /* set its new value */ |
225 | invalidateTMcache(h); | 225 | invalidateTMcache(h); |
226 | luaC_barrierback(L, h, val); | 226 | luaC_barrierback(L, obj2gco(h), val); |
227 | return; | 227 | return; |
228 | } | 228 | } |
229 | /* else will try the metamethod */ | 229 | /* else will try the metamethod */ |
@@ -1691,7 +1691,7 @@ void luaV_execute (lua_State *L, CallInfo *ci) { | |||
1691 | TValue *val = s2v(ra + n); | 1691 | TValue *val = s2v(ra + n); |
1692 | setobj2t(L, &h->array[last - 1], val); | 1692 | setobj2t(L, &h->array[last - 1], val); |
1693 | last--; | 1693 | last--; |
1694 | luaC_barrierback(L, h, val); | 1694 | luaC_barrierback(L, obj2gco(h), val); |
1695 | } | 1695 | } |
1696 | vmbreak; | 1696 | vmbreak; |
1697 | } | 1697 | } |