aboutsummaryrefslogtreecommitdiff
path: root/ltable.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 /ltable.c
parent422318f6777d8d3bac13ade797d9c8eaa38686b6 (diff)
downloadlua-1afd5a152dc8b3a304236dc4e07bca38ea5eb53a.tar.gz
lua-1afd5a152dc8b3a304236dc4e07bca38ea5eb53a.tar.bz2
lua-1afd5a152dc8b3a304236dc4e07bca38ea5eb53a.zip
more generic way to handle 'gclist'
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltable.c b/ltable.c
index a8929961..dbe5e2ed 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 2.130 2017/12/29 15:58:23 roberto Exp roberto $ 2** $Id: ltable.c,v 2.131 2018/01/28 15:13:26 roberto Exp roberto $
3** Lua tables (hash) 3** Lua tables (hash)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -600,7 +600,7 @@ TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key) {
600 } 600 }
601 } 601 }
602 setnodekey(L, mp, key); 602 setnodekey(L, mp, key);
603 luaC_barrierback(L, t, key); 603 luaC_barrierback(L, obj2gco(t), key);
604 lua_assert(ttisnil(gval(mp))); 604 lua_assert(ttisnil(gval(mp)));
605 return gval(mp); 605 return gval(mp);
606} 606}