summaryrefslogtreecommitdiff
path: root/lbuiltin.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-01-25 10:30:11 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-01-25 10:30:11 -0200
commit1b45e967b4dcb234551c2a731147b111584f4145 (patch)
tree4a257873ccadd2779df799eb8f41f146407a4081 /lbuiltin.c
parent933bead92e48cdd8f2c9b5953854270e98d58c9a (diff)
downloadlua-github-1b45e967b4dcb234551c2a731147b111584f4145.tar.gz
table entries with ref=null always have val=null too.
Diffstat (limited to 'lbuiltin.c')
-rw-r--r--lbuiltin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbuiltin.c b/lbuiltin.c
index 8526ae27..f67059ca 100644
--- a/lbuiltin.c
+++ b/lbuiltin.c
@@ -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);