Merge f8b20fd35b into merged_master (Bitcoin PR bitcoin/bitcoin#22464)

This commit is contained in:
Andrew Poelstra 2021-08-02 20:02:26 +00:00
commit dd2645a060

View file

@ -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));