diff options
-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 | } |