mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
Merge bitcoin/bitcoin#22464: bench: fix 32-bit narrowing warning in bench/peer_eviction.cpp
e49d50cf40
bench: fix 32-bit narrowing warning in bench/peer_eviction.cpp (Jon Atack) Pull request description: Closes https://github.com/bitcoin/bitcoin/issues/22459. ACKs for top commit: hebasto: ACKe49d50cf40
, tested on Debian 10.10 (i386): Tree-SHA512: 8ca366fc296c633dbc8b8e0e7d80f4f6a64d02fb3da86d199881364f027d34b816a3c964b3fea2c1cc0b3ad51dd02d93c8bb14b5ebbd99fb4073cd1031766332
This commit is contained in:
commit
f8b20fd35b
1 changed files with 2 additions and 1 deletions
|
@ -27,7 +27,8 @@ static void EvictionProtectionCommon(
|
||||||
candidate_setup_fn(c);
|
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};
|
size_t i{0};
|
||||||
bench.run([&] {
|
bench.run([&] {
|
||||||
ProtectEvictionCandidatesByRatio(copies.at(i));
|
ProtectEvictionCandidatesByRatio(copies.at(i));
|
||||||
|
|
Loading…
Add table
Reference in a new issue