aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lgc.c b/lgc.c
index fe9bed2d..4101dd6d 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 1.170 2003/03/18 12:50:04 roberto Exp roberto $ 2** $Id: lgc.c,v 1.171 2003/04/03 13:35:34 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*/
@@ -389,7 +389,7 @@ static void sweepstrings (lua_State *L, int all) {
389 389
390static void checkSizes (lua_State *L) { 390static void checkSizes (lua_State *L) {
391 /* check size of string hash */ 391 /* check size of string hash */
392 if (G(L)->strt.nuse < cast(ls_nstr, G(L)->strt.size/4) && 392 if (G(L)->strt.nuse < cast(lu_int32, G(L)->strt.size/4) &&
393 G(L)->strt.size > MINSTRTABSIZE*2) 393 G(L)->strt.size > MINSTRTABSIZE*2)
394 luaS_resize(L, G(L)->strt.size/2); /* table is too big */ 394 luaS_resize(L, G(L)->strt.size/2); /* table is too big */
395 /* check size of buffer */ 395 /* check size of buffer */