summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/basic/bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/bitmap.c b/src/basic/bitmap.c
index 83448ca93c..c5039fd22f 100644
--- a/src/basic/bitmap.c
+++ b/src/basic/bitmap.c
@@ -157,7 +157,7 @@ bool bitmap_iterate(Bitmap *b, Iterator *i, unsigned *n) {
offset = BITMAP_NUM_TO_OFFSET(i->idx);
rem = BITMAP_NUM_TO_REM(i->idx);
- bitmask = 1 << rem;
+ bitmask = 1ULL << rem;
for (; offset < b->n_bitmaps; offset ++) {
if (b->bitmaps[offset]) {