Fix fprintf format string.

Using %zu for size_t instead of %ld.

PiperOrigin-RevId: 357976882
This commit is contained in:
Chris Mumford 2021-02-17 10:18:12 -08:00 committed by Chris Mumford
parent 2a47801868
commit 37aaf2fccd

View File

@ -679,7 +679,7 @@ class Benchmark {
} }
arg[0].thread->stats.Report(name); arg[0].thread->stats.Report(name);
if (FLAGS_comparisons) { if (FLAGS_comparisons) {
fprintf(stdout, "Comparisons: %ld\n", count_comparator_.comparisons()); fprintf(stdout, "Comparisons: %zu\n", count_comparator_.comparisons());
count_comparator_.reset(); count_comparator_.reset();
fflush(stdout); fflush(stdout);
} }