diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-01-25 10:30:11 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-01-25 10:30:11 -0200 |
commit | 1b45e967b4dcb234551c2a731147b111584f4145 (patch) | |
tree | 4a257873ccadd2779df799eb8f41f146407a4081 /lbuiltin.c | |
parent | 933bead92e48cdd8f2c9b5953854270e98d58c9a (diff) | |
download | lua-github-1b45e967b4dcb234551c2a731147b111584f4145.tar.gz |
table entries with ref=null always have val=null too.
Diffstat (limited to 'lbuiltin.c')
-rw-r--r-- | lbuiltin.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lbuiltin.c,v 1.45 1999/01/04 17:34:49 roberto Exp roberto $ +** $Id: lbuiltin.c,v 1.46 1999/01/22 18:46:11 roberto Exp roberto $ ** Built-in functions ** See Copyright Notice in lua.h */ @@ -348,7 +348,7 @@ static void luaB_foreach (void) { luaD_checkstack(3); /* for f, ref, and val */ for (i=0; i<a->nhash; i++) { Node *nd = &(a->node[i]); - if (ttype(ref(nd)) != LUA_T_NIL && ttype(val(nd)) != LUA_T_NIL) { + if (ttype(val(nd)) != LUA_T_NIL) { *(L->stack.top++) = *f; *(L->stack.top++) = *ref(nd); *(L->stack.top++) = *val(nd); |