summaryrefslogtreecommitdiff
path: root/reclaim.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-03-06 11:57:07 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-03-06 11:57:07 +0300
commita6e21c52d378a6ce617660bb9383069e8b9dd8a7 (patch)
tree48c95eff1e1e093269f7b184c1f0b191d73a165e /reclaim.c
parent83e6b4196e84795183947c56e720c1ce5c30caf2 (diff)
downloadbdwgc-a6e21c52d378a6ce617660bb9383069e8b9dd8a7.tar.gz
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.
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 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. */