Skip to content

Commit f8b20fd

Browse files
author
MarcoFalke
committed
Merge bitcoin/bitcoin#22464: bench: fix 32-bit narrowing warning in bench/peer_eviction.cpp
e49d50c bench: fix 32-bit narrowing warning in bench/peer_eviction.cpp (Jon Atack) Pull request description: Closes bitcoin/bitcoin#22459. ACKs for top commit: hebasto: ACK e49d50c, tested on Debian 10.10 (i386): Tree-SHA512: 8ca366fc296c633dbc8b8e0e7d80f4f6a64d02fb3da86d199881364f027d34b816a3c964b3fea2c1cc0b3ad51dd02d93c8bb14b5ebbd99fb4073cd1031766332
2 parents a88fa1a + e49d50c commit f8b20fd

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)