diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2017-07-21 18:17:06 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2017-07-21 18:17:06 +0300 |
commit | 3acde978398b145b1e2d8900de634ca9d75ada18 (patch) | |
tree | 07b8a5501333db5f539708d1d86c89325a50349f /reclaim.c | |
parent | cb89b1bb2c1b94af862cb68cc4d7e1bd6444ad2a (diff) | |
download | bdwgc-3acde978398b145b1e2d8900de634ca9d75ada18.tar.gz |
Eliminate CSA warning about incorrect cast applied to HBLK_OBJS
HBLK_OBJS() expects the argument value and has the result value of
size_t type.
* reclaim.c (GC_print_block_descr): Cast result of HBLK_OBJS() to
unsigned int instead of casting its argument.
Diffstat (limited to 'reclaim.c')
-rw-r--r-- | reclaim.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -538,7 +538,7 @@ STATIC void GC_print_block_descr(struct hblk *h, size_t bytes = hhdr -> hb_sz; struct Print_stats *ps; unsigned n_marks = GC_n_set_marks(hhdr); - unsigned n_objs = HBLK_OBJS((unsigned)bytes); + unsigned n_objs = (unsigned)HBLK_OBJS(bytes); if (0 == n_objs) n_objs = 1; if (hhdr -> hb_n_marks != n_marks) { |