From fa309ee61c09726a8780acaea94502712f817921 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Thu, 9 Sep 2021 08:48:03 +0200 Subject: bench: Fix 32-bit compilation failure in addrman bench --- src/bench/addrman.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/bench/addrman.cpp') diff --git a/src/bench/addrman.cpp b/src/bench/addrman.cpp index 8fbb68c04c..e5dd571a4c 100644 --- a/src/bench/addrman.cpp +++ b/src/bench/addrman.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include @@ -110,7 +111,8 @@ static void AddrManGood(benchmark::Bench& bench) * we want to do the same amount of work in every loop iteration. */ bench.epochs(5).epochIterations(1); - const size_t addrman_count{bench.epochs() * bench.epochIterations()}; + const uint64_t addrman_count{bench.epochs() * bench.epochIterations()}; + Assert(addrman_count == 5U); std::vector> addrmans(addrman_count); for (size_t i{0}; i < addrman_count; ++i) { -- cgit v1.2.3