From 2cf277b6f65d882cc8d3010fc1c91deb5edb32ba Mon Sep 17 00:00:00 2001 From: Jean-Louis Leroy Date: Mon, 13 Apr 2015 15:03:27 -0400 Subject: [PATCH] Iterations declared as size_t but printf'ed as a long long. Make it a long long. --- include/benchmark/reporter.h | 2 +- src/reporter.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/benchmark/reporter.h b/include/benchmark/reporter.h index bb4ccdfe..d23ab657 100644 --- a/include/benchmark/reporter.h +++ b/include/benchmark/reporter.h @@ -49,7 +49,7 @@ class BenchmarkReporter { std::string benchmark_name; std::string report_label; // Empty if not set by benchmark. - size_t iterations; + int64_t iterations; double real_accumulated_time; double cpu_accumulated_time; diff --git a/src/reporter.cc b/src/reporter.cc index 5d6e7226..4b47e3d5 100644 --- a/src/reporter.cc +++ b/src/reporter.cc @@ -33,7 +33,7 @@ void BenchmarkReporter::ComputeStats( Stat1_d items_per_second_stat; // All repetitions should be run with the same number of iterations so we // can take this information from the first benchmark. - std::size_t const run_iterations = reports.front().iterations; + int64_t const run_iterations = reports.front().iterations; // Populate the accumulators. for (Run const& run : reports) {