aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-04-28 16:26:16 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-04-28 16:26:16 -0300
commit572a69df78b2636642e9c520ebc8c1d2efa16afe (patch)
tree0e1e6f042e63f1d0e8aabc692692f2fcc42efb75 /lgc.c
parent943c82b37622bd2321d4fbb361d99f4495ceed2f (diff)
downloadlua-572a69df78b2636642e9c520ebc8c1d2efa16afe.tar.gz
lua-572a69df78b2636642e9c520ebc8c1d2efa16afe.tar.bz2
lua-572a69df78b2636642e9c520ebc8c1d2efa16afe.zip
Lua does not need all those different types...
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 */