diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-05-29 20:51:48 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-05-29 20:51:48 +0300 |
commit | 387a566a204af010496260113e2311bb04a6a529 (patch) | |
tree | 5fea92484eb84277b254e827b278fb532cb83e8e /reclaim.c | |
parent | 9114c51a1fde038d3eee044f3dfa6e2b17bca1d6 (diff) | |
download | bdwgc-387a566a204af010496260113e2311bb04a6a529.tar.gz |
Eliminate 'comparing signed and unsigned values' compiler warnings (bcc)
* allchblk.c (GC_allochblk_nth): Cast HBLKSIZE to signed_word in
comparison to size_needed.
* reclaim.c (GC_reclaim_all): Cast hhdr->hb_last_reclaimed to word in
comparison to GC_gc_no-1.
Diffstat (limited to 'reclaim.c')
-rw-r--r-- | reclaim.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -738,7 +738,8 @@ GC_INNER GC_bool GC_reclaim_all(GC_stop_func stop_func, GC_bool ignore_old) } hhdr = HDR(hbp); *rlh = hhdr -> hb_next; - if (!ignore_old || hhdr -> hb_last_reclaimed == GC_gc_no - 1) { + if (!ignore_old + || (word)hhdr->hb_last_reclaimed == GC_gc_no - 1) { /* It's likely we'll need it this time, too */ /* It's been touched recently, so this */ /* shouldn't trigger paging. */ |