From fdafd4f4a88d1584dea900517445a17d87f8b82f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 30 Aug 2002 16:09:21 -0300 Subject: new structure for collectable objects, sharing a common header --- ltests.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index cb11b4e1..886996b4 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 1.132 2002/08/06 15:32:22 roberto Exp roberto $ +** $Id: ltests.c,v 1.133 2002/08/06 18:01:50 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -324,10 +324,10 @@ static int string_query (lua_State *L) { return 2; } else if (s < tb->size) { - TString *ts; + GCObject *ts; int n = 0; - for (ts = tb->hash[s]; ts; ts = ts->tsv.nexthash) { - setsvalue(L->top, ts); + for (ts = tb->hash[s]; ts; ts = ts->gch.next) { + setsvalue(L->top, &ts->ts); incr_top(L); n++; } -- cgit v1.2.3-55-g6feb