diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-01 15:40:48 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-01 15:40:48 -0200 |
commit | e506b864cdc522ed7bf33e81d785fcfbd40a0368 (patch) | |
tree | c62865ee026136cd8784658110e8928127ad276c /lgc.c | |
parent | 9a231afa9721e87ae5f9790dedcb73cd58472a3f (diff) | |
download | lua-e506b864cdc522ed7bf33e81d785fcfbd40a0368.tar.gz lua-e506b864cdc522ed7bf33e81d785fcfbd40a0368.tar.bz2 lua-e506b864cdc522ed7bf33e81d785fcfbd40a0368.zip |
no need for tags in boxed values :-(
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 | ||
68 | static void markobject (GCState *st, TObject *o) { | 68 | static 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)); |