Skip to content

Commit fa309ee

Browse files
author
MarcoFalke
committed
bench: Fix 32-bit compilation failure in addrman bench
1 parent fae0295 commit fa309ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bench/addrman.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <addrman.h>
66
#include <bench/bench.h>
77
#include <random.h>
8+
#include <util/check.h>
89
#include <util/time.h>
910

1011
#include <optional>
@@ -110,7 +111,8 @@ static void AddrManGood(benchmark::Bench& bench)
110111
* we want to do the same amount of work in every loop iteration. */
111112

112113
bench.epochs(5).epochIterations(1);
113-
const size_t addrman_count{bench.epochs() * bench.epochIterations()};
114+
const uint64_t addrman_count{bench.epochs() * bench.epochIterations()};
115+
Assert(addrman_count == 5U);
114116

115117
std::vector<std::unique_ptr<CAddrMan>> addrmans(addrman_count);
116118
for (size_t i{0}; i < addrman_count; ++i) {

0 commit comments

Comments
 (0)