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: v7.4.6~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0df13fccaa1daa085da0f019ba0e57742a0cdf94;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 a332ef67..f2bc8b29 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];