From dad808a73a98a23729614b8814728d76b4e5d577 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 29 Sep 2000 09:42:13 -0300 Subject: new way to count `nblocks' for GC (try to count bytes). --- ltable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index 2f7ef3dc..7a732e53 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 1.54 2000/08/31 14:08:27 roberto Exp roberto $ +** $Id: ltable.c,v 1.55 2000/09/11 20:29:27 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -27,7 +27,7 @@ #include "ltable.h" -#define gcsize(L, n) numblocks(L, n*2, sizeof(Hash)) +#define gcsize(L, n) (sizeof(Hash)+(n)*sizeof(Node)) -- cgit v1.2.3-55-g6feb