diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-31 13:28:45 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-31 13:28:45 -0300 |
commit | 36e1390631a4b89f0a8a3111978780de0d53466c (patch) | |
tree | 21fea050e98d3cf844377c58503ccd15e00a43db /ltable.c | |
parent | 8f0f54ec3835f5d1637ae2720e2b4de6a177574a (diff) | |
download | lua-36e1390631a4b89f0a8a3111978780de0d53466c.tar.gz lua-36e1390631a4b89f0a8a3111978780de0d53466c.tar.bz2 lua-36e1390631a4b89f0a8a3111978780de0d53466c.zip |
details.
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 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)--; |