diff --git a/src/bench/peer_eviction.cpp b/src/bench/peer_eviction.cpp index 0469f0cb4c0..46fd9d999e1 100644 --- a/src/bench/peer_eviction.cpp +++ b/src/bench/peer_eviction.cpp @@ -27,7 +27,8 @@ static void EvictionProtectionCommon( candidate_setup_fn(c); } - std::vector copies{bench.epochs() * bench.epochIterations(), candidates}; + std::vector copies{ + static_cast(bench.epochs() * bench.epochIterations()), candidates}; size_t i{0}; bench.run([&] { ProtectEvictionCandidatesByRatio(copies.at(i));