diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-19 17:06:56 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-19 17:06:56 -0300 |
commit | 1afd5a152dc8b3a304236dc4e07bca38ea5eb53a (patch) | |
tree | 7c4f880b09a023a3fe527d7d2cbcec9f11c09302 /ltable.c | |
parent | 422318f6777d8d3bac13ade797d9c8eaa38686b6 (diff) | |
download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | } |