aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
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 86357920..299821ca 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 1.37 2000/03/27 20:10:21 roberto Exp roberto $ 2** $Id: ltable.c,v 1.38 2000/03/29 20:19:20 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*/
@@ -198,7 +198,7 @@ void luaH_set (lua_State *L, Hash *t, const TObject *key, const TObject *val) {
198 mp->key = *key; 198 mp->key = *key;
199 mp->val = *val; 199 mp->val = *val;
200 for (;;) { /* check free places */ 200 for (;;) { /* check free places */
201 if (ttype(&(t->firstfree)->key) == TAG_NIL) 201 if (ttype(&t->firstfree->key) == TAG_NIL)
202 return; /* OK; table still has a free place */ 202 return; /* OK; table still has a free place */
203 else if (t->firstfree == t->node) break; /* cannot decrement from here */ 203 else if (t->firstfree == t->node) break; /* cannot decrement from here */
204 else (t->firstfree)--; 204 else (t->firstfree)--;