diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-03-06 11:57:07 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-03-06 11:57:07 +0300 |
commit | a6e21c52d378a6ce617660bb9383069e8b9dd8a7 (patch) | |
tree | 48c95eff1e1e093269f7b184c1f0b191d73a165e /reclaim.c | |
parent | 83e6b4196e84795183947c56e720c1ce5c30caf2 (diff) | |
download | bdwgc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |