Skip to content

Commit 7f2576c

Browse files
committed
allocator: use CHAR_BIT instead of 8
1 parent 0f6e863 commit 7f2576c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/allocator_internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ typedef unsigned long bitmap_t;
104104

105105
// Stop configuring.
106106

107-
#define CONTINUATIONS_PER_BITMAP (BYTES_PER_BITMAP * 8)
108-
#define BITMAPS_PER_SUPERMAP (BYTES_PER_SUPERMAP * 8)
107+
#define CONTINUATIONS_PER_BITMAP (BYTES_PER_BITMAP * CHAR_BIT)
108+
#define BITMAPS_PER_SUPERMAP (BYTES_PER_SUPERMAP * CHAR_BIT)
109109

110110
#define BYTES_PER_MAGAZINE (PAGES_PER_MAGAZINE * DISPATCH_ALLOCATOR_PAGE_SIZE)
111111
#define CONSUMED_BYTES_PER_BITMAP (BYTES_PER_BITMAP + \

0 commit comments

Comments
 (0)