summaryrefslogtreecommitdiff
path: root/reclaim.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-05-29 20:51:48 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-05-29 20:51:48 +0300
commit387a566a204af010496260113e2311bb04a6a529 (patch)
tree5fea92484eb84277b254e827b278fb532cb83e8e /reclaim.c
parent9114c51a1fde038d3eee044f3dfa6e2b17bca1d6 (diff)
downloadbdwgc-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/reclaim.c b/reclaim.c
index 85591a30..3c3583e1 100644
--- a/reclaim.c
+++ b/reclaim.c
@@ -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. */