From d0b006ab13e10ff5bb7b115cff9362b077e596dd Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Tue, 29 Apr 2014 12:29:22 -0700 Subject: [PATCH] Fix unsigned and signed integer compare --- util/benchharness_test.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/util/benchharness_test.cc b/util/benchharness_test.cc index 39179c02e..75ff65892 100644 --- a/util/benchharness_test.cc +++ b/util/benchharness_test.cc @@ -18,42 +18,42 @@ BENCHMARK(insertFrontVector) { BENCHMARK_RELATIVE(insertBackVector) { std::vector v; - for (int i = 0; i < 100; i++) { + for (size_t i = 0; i < 100; i++) { v.insert(v.end(), i); } } BENCHMARK_N(insertFrontVector_n, n) { std::vector v; - for (int i = 0; i < n; i++) { + for (size_t i = 0; i < n; i++) { v.insert(v.begin(), i); } } BENCHMARK_RELATIVE_N(insertBackVector_n, n) { std::vector v; - for (int i = 0; i < n; i++) { + for (size_t i = 0; i < n; i++) { v.insert(v.end(), i); } } BENCHMARK_N(insertFrontEnd_n, n) { std::vector v; - for (int i = 0; i < n; i++) { + for (size_t i = 0; i < n; i++) { v.insert(v.begin(), i); } - for (int i = 0; i < n; i++) { + for (size_t i = 0; i < n; i++) { v.insert(v.end(), i); } } BENCHMARK_RELATIVE_N(insertFrontEndSuspend_n, n) { std::vector v; - for (int i = 0; i < n; i++) { + for (size_t i = 0; i < n; i++) { v.insert(v.begin(), i); } BENCHMARK_SUSPEND { - for (int i = 0; i < n; i++) { + for (size_t i = 0; i < n; i++) { v.insert(v.end(), i); } }