summaryrefslogtreecommitdiff
path: root/alloc.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2017-08-30 10:00:46 +0300
committerIvan Maidanski <ivmai@mail.ru>2017-08-30 10:00:46 +0300
commit57406a0b54473fa18eeaa7dfca002635481e5cb9 (patch)
treeea271598fc97fd31d1568c785e2fba6a78af48f6 /alloc.c
parentaa406bd7dd2106b2bf9a51edaabc2ce65a22c95d (diff)
downloadbdwgc-57406a0b54473fa18eeaa7dfca002635481e5cb9.tar.gz
Remove unnecessary type casts of printf arguments to unsigned long
(code refactoring) * alloc.c [!NO_DEBUGGING] (GC_print_heap_sects): Remove unnecessary cast to unsigned long in GC_*_printf call and adjust printf format specifier to match the argument type. * checksums.c [CHECKSUMS] (GC_checksum): Likewise. * mark.c [PARALLEL_MARK] (GC_mark_local): Likewise. * tests/test.c (typed_test): Likewise. * checksums.c [CHECKSUMS] (GC_checksum): Change type of GC_n_clean, GC_n_dirty from int to unsigned long.
Diffstat (limited to 'alloc.c')
-rw-r--r--alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/alloc.c b/alloc.c
index c492f015..619d0f25 100644
--- a/alloc.c
+++ b/alloc.c
@@ -1209,9 +1209,9 @@ GC_INNER void GC_add_to_heap(struct hblk *p, size_t bytes)
for (h = (struct hblk *)start; (word)h < (word)(start + len); h++) {
if (GC_is_black_listed(h, HBLKSIZE)) nbl++;
}
- GC_printf("Section %d from %p to %p %lu/%lu blacklisted\n",
+ GC_printf("Section %d from %p to %p %u/%lu blacklisted\n",
i, (void *)start, (void *)&start[len],
- (unsigned long)nbl, (unsigned long)divHBLKSZ(len));
+ nbl, (unsigned long)divHBLKSZ(len));
}
}
#endif