From 8faf4d1de2cbda61ae871fc23091deff3672e0fc Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 12 Jan 1995 12:19:04 -0200 Subject: control of garbage collection is done with Longs, as there can be more than WORD objects to collect. --- table.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'table.c') diff --git a/table.c b/table.c index f17f1ca4..85311b21 100644 --- a/table.c +++ b/table.c @@ -3,7 +3,7 @@ ** Module to control static tables */ -char *rcs_table="$Id: table.c,v 2.24 1994/12/16 15:55:04 roberto Exp roberto $"; +char *rcs_table="$Id: table.c,v 2.25 1994/12/20 21:20:36 roberto Exp roberto $"; #include @@ -173,9 +173,9 @@ void lua_markobject (Object *o) */ void lua_pack (void) { - static Word block = GARBAGE_BLOCK; /* when garbage collector will be called */ - static Word nentity = 0; /* counter of new entities (strings and arrays) */ - Word recovered = 0; + static Long block = GARBAGE_BLOCK; /* when garbage collector will be called */ + static Long nentity = 0; /* counter of new entities (strings and arrays) */ + Long recovered = 0; if (nentity++ < block) return; lua_travstack(lua_markobject); /* mark stack objects */ lua_travsymbol(lua_markobject); /* mark symbol table objects */ -- cgit v1.2.3-55-g6feb