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