summaryrefslogtreecommitdiff
path: root/reclaim.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2017-07-21 18:17:06 +0300
committerIvan Maidanski <ivmai@mail.ru>2017-07-21 18:17:06 +0300
commit3acde978398b145b1e2d8900de634ca9d75ada18 (patch)
tree07b8a5501333db5f539708d1d86c89325a50349f /reclaim.c
parentcb89b1bb2c1b94af862cb68cc4d7e1bd6444ad2a (diff)
downloadbdwgc-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reclaim.c b/reclaim.c
index d3070054..2361406e 100644
--- a/reclaim.c
+++ b/reclaim.c
@@ -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) {