From e034ccb9b4d4e8d0528f19add1b0be38e916c4b0 Mon Sep 17 00:00:00 2001 From: Justin Viiret Date: Tue, 5 Apr 2016 15:18:33 +1000 Subject: [PATCH] mmbit_iterate_bounded: make block_width u64a --- src/util/multibit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/multibit.h b/src/util/multibit.h index 771c158d..b2393f3f 100644 --- a/src/util/multibit.h +++ b/src/util/multibit.h @@ -742,7 +742,7 @@ u32 mmbit_iterate_bounded_big(const u8 *bits, u32 total_bits, u32 it_start, u32 for (;;) { assert(level <= max_level); - u32 block_width = MMB_KEY_BITS << ks; + u64a block_width = MMB_KEY_BITS << ks; u64a block_base = key * block_width; u64a block_min = MAX(it_start, block_base); u64a block_max = MIN(it_end, block_base + block_width - 1);