From 1afd5a152dc8b3a304236dc4e07bca38ea5eb53a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 19 Feb 2018 17:06:56 -0300 Subject: more generic way to handle 'gclist' --- ltable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index a8929961..dbe5e2ed 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 2.130 2017/12/29 15:58:23 roberto Exp roberto $ +** $Id: ltable.c,v 2.131 2018/01/28 15:13:26 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -600,7 +600,7 @@ TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key) { } } setnodekey(L, mp, key); - luaC_barrierback(L, t, key); + luaC_barrierback(L, obj2gco(t), key); lua_assert(ttisnil(gval(mp))); return gval(mp); } -- cgit v1.2.3-55-g6feb