diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-08-01 14:24:02 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-08-01 14:24:02 -0300 |
commit | f5c690b684b8503dce9fe9f9e1a956cabd1c8699 (patch) | |
tree | d62e88764baf72f53864d933b657ee9f79d404a6 /ltable.c | |
parent | 61fa462535a5c16b46e5b19ee28c0d998ab6c39e (diff) | |
download | lua-f5c690b684b8503dce9fe9f9e1a956cabd1c8699.tar.gz lua-f5c690b684b8503dce9fe9f9e1a956cabd1c8699.tar.bz2 lua-f5c690b684b8503dce9fe9f9e1a956cabd1c8699.zip |
details in comments
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.92 2014/07/18 13:36:14 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.93 2014/07/29 16:22:24 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 | */ |
@@ -440,7 +440,7 @@ TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key) { | |||
440 | Node *f = getfreepos(t); /* get a free place */ | 440 | Node *f = getfreepos(t); /* get a free place */ |
441 | if (f == NULL) { /* cannot find a free place? */ | 441 | if (f == NULL) { /* cannot find a free place? */ |
442 | rehash(L, t, key); /* grow table */ | 442 | rehash(L, t, key); /* grow table */ |
443 | /* whatever called 'newkey' take care of TM cache and GC barrier */ | 443 | /* whatever called 'newkey' takes care of TM cache and GC barrier */ |
444 | return luaH_set(L, t, key); /* insert key into grown table */ | 444 | return luaH_set(L, t, key); /* insert key into grown table */ |
445 | } | 445 | } |
446 | lua_assert(!isdummy(f)); | 446 | lua_assert(!isdummy(f)); |