From 572a69df78b2636642e9c520ebc8c1d2efa16afe Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy <roberto@inf.puc-rio.br> Date: Mon, 28 Apr 2003 16:26:16 -0300 Subject: Lua does not need all those different types... --- lgc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lgc.c') diff --git a/lgc.c b/lgc.c index fe9bed2d..4101dd6d 100644 --- a/lgc.c +++ b/lgc.c @@ -1,5 +1,5 @@ /* -** $Id: lgc.c,v 1.170 2003/03/18 12:50:04 roberto Exp roberto $ +** $Id: lgc.c,v 1.171 2003/04/03 13:35:34 roberto Exp roberto $ ** Garbage Collector ** See Copyright Notice in lua.h */ @@ -389,7 +389,7 @@ static void sweepstrings (lua_State *L, int all) { static void checkSizes (lua_State *L) { /* check size of string hash */ - if (G(L)->strt.nuse < cast(ls_nstr, G(L)->strt.size/4) && + if (G(L)->strt.nuse < cast(lu_int32, G(L)->strt.size/4) && G(L)->strt.size > MINSTRTABSIZE*2) luaS_resize(L, G(L)->strt.size/2); /* table is too big */ /* check size of buffer */ -- cgit v1.2.3-55-g6feb