Bladeren bron

Fix fprintf format string.

Using %zu for size_t instead of %ld.

PiperOrigin-RevId: 357976882
xry
Chris Mumford 3 jaren geleden
committed by Chris Mumford
bovenliggende
commit
37aaf2fccd
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. +1
    -1
      benchmarks/db_bench.cc

+ 1
- 1
benchmarks/db_bench.cc Bestand weergeven

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

Laden…
Annuleren
Opslaan