diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2017-08-30 10:00:46 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2017-08-30 10:00:46 +0300 |
commit | 57406a0b54473fa18eeaa7dfca002635481e5cb9 (patch) | |
tree | ea271598fc97fd31d1568c785e2fba6a78af48f6 /alloc.c | |
parent | aa406bd7dd2106b2bf9a51edaabc2ce65a22c95d (diff) | |
download | bdwgc-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |