From 05a2ace7134ad0842183d5d7bf8d264837c8f1cc Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Mon, 28 Jun 2021 09:06:22 -0700 Subject: [PATCH] Fix type warning on certain compilers (#1193) repetition_indices is populated with size_t values, so typing it accordingly. --- src/benchmark.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/benchmark.cc b/src/benchmark.cc index f9007e77..ccecfbdc 100644 --- a/src/benchmark.cc +++ b/src/benchmark.cc @@ -329,7 +329,7 @@ void RunBenchmarks(const std::vector& benchmarks, } assert(runners.size() == benchmarks.size() && "Unexpected runner count."); - std::vector repetition_indices; + std::vector repetition_indices; repetition_indices.reserve(num_repetitions_total); for (size_t runner_index = 0, num_runners = runners.size(); runner_index != num_runners; ++runner_index) {