aboutsummaryrefslogtreecommitdiff
path: root/src/bench/peer_eviction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bench/peer_eviction.cpp')
-rw-r--r--src/bench/peer_eviction.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bench/peer_eviction.cpp b/src/bench/peer_eviction.cpp
index 0469f0cb4c..46fd9d999e 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<Candidates> copies{bench.epochs() * bench.epochIterations(), candidates};
+ std::vector<Candidates> copies{
+ static_cast<size_t>(bench.epochs() * bench.epochIterations()), candidates};
size_t i{0};
bench.run([&] {
ProtectEvictionCandidatesByRatio(copies.at(i));