diff --git a/include/benchmark/benchmark_api.h b/include/benchmark/benchmark_api.h index 34cd0b5c..f38dc974 100644 --- a/include/benchmark/benchmark_api.h +++ b/include/benchmark/benchmark_api.h @@ -363,7 +363,7 @@ public: // family benchmark, then current benchmark will be part of the computation and complexity_n will // represent the length of N. BENCHMARK_ALWAYS_INLINE - void SetComplexityN(size_t complexity_n) { + void SetComplexityN(int complexity_n) { complexity_n_ = complexity_n; } @@ -444,7 +444,7 @@ private: size_t bytes_processed_; size_t items_processed_; - size_t complexity_n_; + int complexity_n_; public: // FIXME: Make this private somehow. diff --git a/include/benchmark/reporter.h b/include/benchmark/reporter.h index e3a8f573..22c97a01 100644 --- a/include/benchmark/reporter.h +++ b/include/benchmark/reporter.h @@ -87,7 +87,7 @@ class BenchmarkReporter { // Keep track of arguments to compute asymptotic complexity BigO complexity; BigOFunc* complexity_lambda; - size_t complexity_n; + int complexity_n; // Inform print function whether the current run is a complexity report bool report_big_o; @@ -133,14 +133,14 @@ class BenchmarkReporter { error_stream_ = err; } - std::ostream& GetOutputStream() const { + std::ostream& GetOutputStream() const { return *output_stream_; } std::ostream& GetErrorStream() const { return *error_stream_; } - + virtual ~BenchmarkReporter(); // Write a human readable string to 'out' representing the specified