From fdce6fcc30c9f202436c5c9c19321ce5f7ceb65a Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Mon, 30 Apr 2012 14:01:09 -0400 Subject: [PATCH] ck_bitmap: Fix ck_bitmap_next for 32-bit targets. The nubmer of bits in a block was previously hard-coded. --- include/ck_bitmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ck_bitmap.h b/include/ck_bitmap.h index d7b0ace..56a2616 100644 --- a/include/ck_bitmap.h +++ b/include/ck_bitmap.h @@ -266,7 +266,7 @@ ck_bitmap_next(struct ck_bitmap *bitmap, unsigned int previous = i->n_bit++; if (i->cache & 1) { - *bit = previous + (64 * i->n_block); + *bit = previous + (CK_BITMAP_BLOCK * i->n_block); i->cache >>= 1; return true; }