mirror of
https://github.com/google/benchmark.git
synced 2024-12-28 05:20:14 +08:00
Fix type warning on certain compilers (#1193)
repetition_indices is populated with size_t values, so typing it accordingly.
This commit is contained in:
parent
40d2069d84
commit
05a2ace713
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user