Unverified Commit 05a2ace7 by Mircea Trofin Committed by GitHub

Fix type warning on certain compilers (#1193)

repetition_indices is populated with size_t values, so typing it accordingly.
parent 40d2069d
...@@ -329,7 +329,7 @@ void RunBenchmarks(const std::vector<BenchmarkInstance>& benchmarks, ...@@ -329,7 +329,7 @@ void RunBenchmarks(const std::vector<BenchmarkInstance>& benchmarks,
} }
assert(runners.size() == benchmarks.size() && "Unexpected runner count."); 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); repetition_indices.reserve(num_repetitions_total);
for (size_t runner_index = 0, num_runners = runners.size(); for (size_t runner_index = 0, num_runners = runners.size();
runner_index != num_runners; ++runner_index) { runner_index != num_runners; ++runner_index) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment