diff options
author | Martijn Coenen <maco@google.com> | 2016-11-14 14:16:08 +0100 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2016-11-15 09:07:11 +0100 |
commit | be763d85c881b58754e650192204e8a2309660cb (patch) | |
tree | 09175cceb1d28d140993c687b4c89abfeac2763d /benchmarks/stdio_benchmark.cpp | |
parent | b3321c961452f69650e4a6bd2a7db317a80b3234 (diff) |
Fix deprecated range_x() calls.
Test: builds with new libbenchmark.
Change-Id: I91c0e5c1b5cf75b8e551f3c59d83ac9352817c4a
Diffstat (limited to 'benchmarks/stdio_benchmark.cpp')
-rw-r--r-- | benchmarks/stdio_benchmark.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/stdio_benchmark.cpp b/benchmarks/stdio_benchmark.cpp index a556d1723..f49677956 100644 --- a/benchmarks/stdio_benchmark.cpp +++ b/benchmarks/stdio_benchmark.cpp @@ -28,7 +28,7 @@ constexpr auto KB = 1024; template <typename Fn> void ReadWriteTest(benchmark::State& state, Fn f, bool buffered) { - size_t chunk_size = state.range_x(); + size_t chunk_size = state.range(0); FILE* fp = fopen("/dev/zero", "rw"); __fsetlocking(fp, FSETLOCKING_BYCALLER); |