summaryrefslogtreecommitdiff
path: root/reclaim.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-06-14 11:26:41 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-06-14 11:26:41 +0300
commitb43249ec2ed584bf010c275fc80d6c5cdf109bf4 (patch)
tree877d04ce8d0a8ce1d2e44a7f6e2ec51c82ea08ae /reclaim.c
parent962eea47ca5bb2c9fc1043557cbc6c894e64940d (diff)
downloadbdwgc-b43249ec2ed584bf010c275fc80d6c5cdf109bf4.tar.gz
Fix result computation in n_set_marks
* reclaim.c [!USE_MARK_BYTES] (GC_n_set_marks): Do not decrement the result variable on return; add comment.
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 90bf29a7..d50369e4 100644
--- a/reclaim.c
+++ b/reclaim.c
@@ -538,7 +538,7 @@ unsigned GC_n_set_marks(hdr *hhdr)
# else
result += set_bits(hhdr -> hb_marks[n_mark_words - 1]);
# endif
- return(result - 1);
+ return result; /* the number of set bits excluding the one past the end */
}
#endif /* !USE_MARK_BYTES */