From: Ivan Maidanski Date: Thu, 14 Jun 2018 08:26:41 +0000 (+0300) Subject: Fix result computation in n_set_marks X-Git-Tag: v7.6.8~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b82c158c2507cbb36906931a0891ccf64b2e3e19;p=gc 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. --- diff --git a/reclaim.c b/reclaim.c index b8276ee1..1b2268b3 100644 --- a/reclaim.c +++ b/reclaim.c @@ -527,7 +527,7 @@ int 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 */