ck_bitmap: Fix ck_bitmap_next for 32-bit targets.

The nubmer of bits in a block was previously hard-coded.
ck_pring 0.2.2
Samy Al Bahra 13 years ago
parent 0aa2c20cce
commit fdce6fcc30

@ -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;
}

Loading…
Cancel
Save