From 19dea35b902f66403ef0636f0a21c2051ddc0990 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sat, 22 Apr 2017 00:28:35 +0300 Subject: [PATCH] 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). --- reclaim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.40.0