Fix type warning on certain compilers (#1193)

repetition_indices is populated with size_t values, so typing it
accordingly.
This commit is contained in:
Mircea Trofin 2021-06-28 09:06:22 -07:00 committed by GitHub
parent 40d2069d84
commit 05a2ace713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -329,7 +329,7 @@ void RunBenchmarks(const std::vector<BenchmarkInstance>& benchmarks,
}
assert(runners.size() == benchmarks.size() && "Unexpected runner count.");
std::vector<int> repetition_indices;
std::vector<size_t> repetition_indices;
repetition_indices.reserve(num_repetitions_total);
for (size_t runner_index = 0, num_runners = runners.size();
runner_index != num_runners; ++runner_index) {