diff options
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 2.42 2009/10/23 12:31:12 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.43 2009/11/05 17:43:54 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 | */ |
@@ -72,8 +72,8 @@ | |||
72 | #define dummynode (&dummynode_) | 72 | #define dummynode (&dummynode_) |
73 | 73 | ||
74 | static const Node dummynode_ = { | 74 | static const Node dummynode_ = { |
75 | {{NULL}, LUA_TNIL}, /* value */ | 75 | {NILCONSTANT}, /* value */ |
76 | {{{NULL}, LUA_TNIL, NULL}} /* key */ | 76 | {{NILCONSTANT, NULL}} /* key */ |
77 | }; | 77 | }; |
78 | 78 | ||
79 | 79 | ||
@@ -418,7 +418,7 @@ static TValue *newkey (lua_State *L, Table *t, const TValue *key) { | |||
418 | mp = n; | 418 | mp = n; |
419 | } | 419 | } |
420 | } | 420 | } |
421 | setnodekey(mp, key); | 421 | setobj2t(L, gkey(mp), key); |
422 | luaC_barriert(L, t, key); | 422 | luaC_barriert(L, t, key); |
423 | lua_assert(ttisnil(gval(mp))); | 423 | lua_assert(ttisnil(gval(mp))); |
424 | return gval(mp); | 424 | return gval(mp); |