From: Ivan Maidanski Date: Fri, 21 Apr 2017 21:28:35 +0000 (+0300) Subject: Eliminate 'possible loss of data' MS VC warning in disclaim_and_reclaim X-Git-Tag: v8.0.0~772 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b48cc1292110dbc3388524eed5191dbbabeceade;p=gc Eliminate 'possible loss of data' MS VC warning in disclaim_and_reclaim * reclaim.c [ENABLE_DISCLAIM] (GC_disclaim_and_reclaim): Change type of bit_no local variable from int to word (matching that in other GC_reclaim_* functions). --- diff --git a/reclaim.c b/reclaim.c index 8be53a08..1b26e927 100644 --- a/reclaim.c +++ b/reclaim.c @@ -222,7 +222,7 @@ STATIC ptr_t GC_reclaim_uninit(struct hblk *hbp, hdr *hhdr, size_t sz, STATIC ptr_t GC_disclaim_and_reclaim(struct hblk *hbp, hdr *hhdr, size_t sz, ptr_t list, signed_word *count) { - int bit_no = 0; + word bit_no = 0; word *p, *q, *plim; signed_word n_bytes_found = 0; struct obj_kind *ok = &GC_obj_kinds[hhdr->hb_obj_kind];