diff options
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 1.136 2003/11/27 18:05:14 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 1.137 2003/12/01 18:22:56 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 | */ |
@@ -398,7 +398,8 @@ static TObject *newkey (lua_State *L, Table *t, const TObject *key) { | |||
398 | mp = n; | 398 | mp = n; |
399 | } | 399 | } |
400 | } | 400 | } |
401 | setobj2t(gkey(mp), key); /* write barrier */ | 401 | setobj2t(gkey(mp), key); |
402 | luaC_barrier(L, t, key); | ||
402 | lua_assert(ttisnil(gval(mp))); | 403 | lua_assert(ttisnil(gval(mp))); |
403 | for (;;) { /* correct `firstfree' */ | 404 | for (;;) { /* correct `firstfree' */ |
404 | if (ttisnil(gkey(t->firstfree))) | 405 | if (ttisnil(gkey(t->firstfree))) |