Skip to content

Commit e49d50c

Browse files
committed
bench: fix 32-bit narrowing warning in bench/peer_eviction.cpp
1 parent a88fa1a commit e49d50c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bench/peer_eviction.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ static void EvictionProtectionCommon(
2727
candidate_setup_fn(c);
2828
}
2929

30-
std::vector<Candidates> copies{bench.epochs() * bench.epochIterations(), candidates};
30+
std::vector<Candidates> copies{
31+
static_cast<size_t>(bench.epochs() * bench.epochIterations()), candidates};
3132
size_t i{0};
3233
bench.run([&] {
3334
ProtectEvictionCandidatesByRatio(copies.at(i));

0 commit comments

Comments
 (0)