From a6e21c52d378a6ce617660bb9383069e8b9dd8a7 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sun, 6 Mar 2022 11:57:07 +0300 Subject: Eliminate 'conversion from size_t to unsigned' VC warning in n_set_marks (fix of commit 83e6b4196) * reclaim.c [!USE_MARK_BYTES && !MARK_BIT_PER_OBJ] (GC_n_set_marks): Change type of ngranules local variable from size_t to unsigned. --- reclaim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'reclaim.c') diff --git a/reclaim.c b/reclaim.c index 9be3a5fc..cca47310 100644 --- a/reclaim.c +++ b/reclaim.c @@ -541,7 +541,7 @@ unsigned GC_n_set_marks(hdr *hhdr) result--; /* exclude the one bit set past the end */ # ifndef MARK_BIT_PER_OBJ if (IS_UNCOLLECTABLE(hhdr -> hb_obj_kind)) { - size_t ngranules = BYTES_TO_GRANULES(sz); + unsigned ngranules = (unsigned)BYTES_TO_GRANULES(sz); /* As mentioned in GC_set_hdr_marks(), all the bits are set */ /* instead of every n-th, thus the result should be adjusted. */ -- cgit v1.2.1