diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-19 05:42:35 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-19 05:42:35 -0300 |
commit | 5ed3bcd4ea5ae3066f61c1a7a3e31a0b2512f5ba (patch) | |
tree | c7acac7582f6cec35f90a703a836bd952bfec1f9 /lgc.c | |
parent | 7508fed6733326b0537719af444407c34a5137be (diff) | |
download | lua-5ed3bcd4ea5ae3066f61c1a7a3e31a0b2512f5ba.tar.gz lua-5ed3bcd4ea5ae3066f61c1a7a3e31a0b2512f5ba.tar.bz2 lua-5ed3bcd4ea5ae3066f61c1a7a3e31a0b2512f5ba.zip |
warnings in Solaris
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 1.64 2000/08/28 17:57:04 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 1.65 2000/09/11 17:38:42 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 | */ |
@@ -246,7 +246,7 @@ static void collectstringtab (lua_State *L, int limit) { | |||
246 | TString **p = &L->strt.hash[i]; | 246 | TString **p = &L->strt.hash[i]; |
247 | TString *next; | 247 | TString *next; |
248 | while ((next = *p) != NULL) { | 248 | while ((next = *p) != NULL) { |
249 | if (next->marked > limit) { /* preserve? */ | 249 | if ((int)next->marked > limit) { /* preserve? */ |
250 | if (next->marked < FIXMARK) /* does not change FIXMARKs */ | 250 | if (next->marked < FIXMARK) /* does not change FIXMARKs */ |
251 | next->marked = 0; | 251 | next->marked = 0; |
252 | p = &next->nexthash; | 252 | p = &next->nexthash; |
@@ -270,7 +270,7 @@ static void collectudatatab (lua_State *L, int all) { | |||
270 | TString *next; | 270 | TString *next; |
271 | while ((next = *p) != NULL) { | 271 | while ((next = *p) != NULL) { |
272 | LUA_ASSERT(next->marked <= 1, "udata cannot be fixed"); | 272 | LUA_ASSERT(next->marked <= 1, "udata cannot be fixed"); |
273 | if (next->marked > all) { /* preserve? */ | 273 | if ((int)next->marked > all) { /* preserve? */ |
274 | next->marked = 0; | 274 | next->marked = 0; |
275 | p = &next->nexthash; | 275 | p = &next->nexthash; |
276 | } | 276 | } |