diff options
author | Jon Atack <jon@atack.com> | 2021-07-15 23:02:20 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2021-07-15 23:05:10 +0200 |
commit | e49d50cf40766120d4079f2ae6f5b33a5952c4d0 (patch) | |
tree | 6cc7e1934d4191cdf00d65441a4afe5a0e88173f /src/bench | |
parent | a88fa1a555195af6543cdc802e8e1c2e1668dd38 (diff) |
bench: fix 32-bit narrowing warning in bench/peer_eviction.cpp
Diffstat (limited to 'src/bench')
-rw-r--r-- | src/bench/peer_eviction.cpp | 3 |
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)); |