diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-08-31 16:46:07 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-08-31 16:46:07 -0300 |
commit | e1d072571ec6f9d830e575a2ecdc95fd43428e53 (patch) | |
tree | 830fab7f2acb9adaee2d63073d339cc9557a5437 /lgc.c | |
parent | 7651a5c6b2ee6ec59cadec6199319d482071f176 (diff) | |
download | lua-e1d072571ec6f9d830e575a2ecdc95fd43428e53.tar.gz lua-e1d072571ec6f9d830e575a2ecdc95fd43428e53.tar.bz2 lua-e1d072571ec6f9d830e575a2ecdc95fd43428e53.zip |
better syntax for type casts
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.108 2001/06/26 13:20:45 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 1.109 2001/06/28 14:57:17 roberto Exp $ |
3 | ** Garbage Collector | 3 | ** Garbage Collector |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -305,7 +305,7 @@ static void collectstrings (lua_State *L, int all) { | |||
305 | } | 305 | } |
306 | } | 306 | } |
307 | } | 307 | } |
308 | if (G(L)->strt.nuse < (ls_nstr)(G(L)->strt.size/4) && | 308 | if (G(L)->strt.nuse < cast(ls_nstr, G(L)->strt.size/4) && |
309 | G(L)->strt.size > MINPOWER2) | 309 | G(L)->strt.size > MINPOWER2) |
310 | luaS_resize(L, G(L)->strt.size/2); /* table is too big */ | 310 | luaS_resize(L, G(L)->strt.size/2); /* table is too big */ |
311 | } | 311 | } |