diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-26 12:16:24 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-26 12:16:24 -0200 |
commit | 9b45439860879dd282e6d0896c4ee8102febc7fd (patch) | |
tree | c92064323d07f78cde9e429f7799288b070d8b8c /lgc.c | |
parent | 7959f3aebb5b12f474b65429dedf550b28223e08 (diff) | |
download | lua-9b45439860879dd282e6d0896c4ee8102febc7fd.tar.gz lua-9b45439860879dd282e6d0896c4ee8102febc7fd.tar.bz2 lua-9b45439860879dd282e6d0896c4ee8102febc7fd.zip |
details
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 1.79 2001/01/25 16:45:36 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 1.80 2001/01/26 13:18:00 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 | */ |
@@ -253,7 +253,7 @@ static void collecttable (lua_State *L) { | |||
253 | 253 | ||
254 | 254 | ||
255 | static void checktab (lua_State *L, stringtable *tb) { | 255 | static void checktab (lua_State *L, stringtable *tb) { |
256 | if (tb->nuse < (luint32)(tb->size/4) && tb->size > 10) | 256 | if (tb->nuse < (luint32)(tb->size/4) && tb->size > MINPOWER2) |
257 | luaS_resize(L, tb, tb->size/2); /* table is too big */ | 257 | luaS_resize(L, tb, tb->size/2); /* table is too big */ |
258 | } | 258 | } |
259 | 259 | ||