aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-02-19 17:06:56 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-02-19 17:06:56 -0300
commit1afd5a152dc8b3a304236dc4e07bca38ea5eb53a (patch)
tree7c4f880b09a023a3fe527d7d2cbcec9f11c09302 /lvm.c
parent422318f6777d8d3bac13ade797d9c8eaa38686b6 (diff)
downloadlua-1afd5a152dc8b3a304236dc4e07bca38ea5eb53a.tar.gz
lua-1afd5a152dc8b3a304236dc4e07bca38ea5eb53a.tar.bz2
lua-1afd5a152dc8b3a304236dc4e07bca38ea5eb53a.zip
more generic way to handle 'gclist'
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lvm.c b/lvm.c
index 0ba6b4bc..0389352f 100644
--- a/lvm.c
+++ b/lvm.c
@@ -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 }