summaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lgc.c b/lgc.c
index 182f6048..90c8165a 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 1.82 2001/01/29 17:16:58 roberto Exp roberto $ 2** $Id: lgc.c,v 1.83 2001/01/29 19:34:02 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*/
@@ -66,8 +66,6 @@ static void marktable (GCState *st, Hash *h) {
66 66
67 67
68static void markobject (GCState *st, TObject *o) { 68static void markobject (GCState *st, TObject *o) {
69 lua_assert(ttype(o) == LUA_TNUMBER ||
70 ttype(o) == ((TValue *)(o->value.v))->ttype);
71 switch (ttype(o)) { 69 switch (ttype(o)) {
72 case LUA_TUSERDATA: case LUA_TSTRING: 70 case LUA_TUSERDATA: case LUA_TSTRING:
73 strmark(tsvalue(o)); 71 strmark(tsvalue(o));