From: Ivan Maidanski Date: Thu, 14 Jun 2018 08:26:41 +0000 (+0300) Subject: Fix result computation in n_set_marks X-Git-Tag: v8.0.0~124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b43249ec2ed584bf010c275fc80d6c5cdf109bf4;p=platform%2Fupstream%2Flibgc.git 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 90bf29a..d50369e 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 */