diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-06-14 11:26:41 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-06-14 11:26:41 +0300 |
commit | b43249ec2ed584bf010c275fc80d6c5cdf109bf4 (patch) | |
tree | 877d04ce8d0a8ce1d2e44a7f6e2ec51c82ea08ae /reclaim.c | |
parent | 962eea47ca5bb2c9fc1043557cbc6c894e64940d (diff) | |
download | bdwgc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |