mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 03:03:22 -03:00
bench: fix 32-bit narrowing warning in bench/peer_eviction.cpp
This commit is contained in:
parent
a88fa1a555
commit
e49d50cf40
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue