Skip to content

Commit 37aaf2f

Browse files
committed
Fix fprintf format string.
Using %zu for size_t instead of %ld. PiperOrigin-RevId: 357976882
1 parent 2a47801 commit 37aaf2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmarks/db_bench.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ class Benchmark {
679679
}
680680
arg[0].thread->stats.Report(name);
681681
if (FLAGS_comparisons) {
682-
fprintf(stdout, "Comparisons: %ld\n", count_comparator_.comparisons());
682+
fprintf(stdout, "Comparisons: %zu\n", count_comparator_.comparisons());
683683
count_comparator_.reset();
684684
fflush(stdout);
685685
}

0 commit comments

Comments
 (0)