From e49d50cf40766120d4079f2ae6f5b33a5952c4d0 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Thu, 15 Jul 2021 23:02:20 +0200 Subject: [PATCH] bench: fix 32-bit narrowing warning in bench/peer_eviction.cpp --- src/bench/peer_eviction.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 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));