bench: fix 32-bit narrowing warning in bench/peer_eviction.cpp
This commit is contained in:
1 file changed
+2
-1
@@ -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));
|
||||||
|
|||||||
Reference in new issue
Block a user