aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-02 14:32:00 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-02 14:32:00 -0200
commit1f9e3731d17df79461a0dc57cc9bd159c70ac56f (patch)
tree9d70e6876074359376df6bb8dc03a3d5134da2ec /lgc.c
parent42224ca5538293f2b4a217e813bc437ca673b3cf (diff)
downloadlua-1f9e3731d17df79461a0dc57cc9bd159c70ac56f.tar.gz
lua-1f9e3731d17df79461a0dc57cc9bd159c70ac56f.tar.bz2
lua-1f9e3731d17df79461a0dc57cc9bd159c70ac56f.zip
back to the basics (well-behaved variant record...)
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lgc.c b/lgc.c
index 48a022e9..c8331b69 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 1.85 2001/02/02 15:13:05 roberto Exp roberto $ 2** $Id: lgc.c,v 1.86 2001/02/02 16:23:20 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -147,7 +147,7 @@ static void traversetable (GCState *st, Hash *h) {
147 Node *n = node(h, i); 147 Node *n = node(h, i);
148 if (ttype(val(n)) == LUA_TNIL) { 148 if (ttype(val(n)) == LUA_TNIL) {
149 if (ttype_key(n) != LUA_TNIL) 149 if (ttype_key(n) != LUA_TNIL)
150 n->key_value.v = NULL; /* dead key; remove it */ 150 n->key_value.ts = NULL; /* dead key; remove it */
151 } 151 }
152 else { 152 else {
153 lua_assert(ttype_key(n) != LUA_TNIL); 153 lua_assert(ttype_key(n) != LUA_TNIL);