aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-08-01 14:24:02 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-08-01 14:24:02 -0300
commitf5c690b684b8503dce9fe9f9e1a956cabd1c8699 (patch)
treed62e88764baf72f53864d933b657ee9f79d404a6 /ltable.c
parent61fa462535a5c16b46e5b19ee28c0d998ab6c39e (diff)
downloadlua-f5c690b684b8503dce9fe9f9e1a956cabd1c8699.tar.gz
lua-f5c690b684b8503dce9fe9f9e1a956cabd1c8699.tar.bz2
lua-f5c690b684b8503dce9fe9f9e1a956cabd1c8699.zip
details in comments
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 543c34df..1e4c1fe5 100644
--- a/ltable.c
+++ b/ltable.c
@@ -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));