Skip to content

Commit

Permalink
Fix conversion warnings/errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed May 21, 2024
1 parent 0979545 commit 0db476c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/parquet/metadata_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void WriteMetadata(benchmark::State& state) {
file_size = sink->Finish().ValueOrDie()->size();
}
state.SetItemsProcessed(state.iterations());
state.counters["file_size"] = file_size;
state.counters["file_size"] = static_cast<double>(file_size);
}

void ReadMetadata(benchmark::State& state) {
Expand All @@ -143,7 +143,7 @@ void ReadMetadata(benchmark::State& state) {
benchmark.ReadFile(contents);
}
state.SetItemsProcessed(state.iterations());
state.counters["file_size"] = contents->size();
state.counters["file_size"] = static_cast<double>(contents->size());
}

BENCHMARK(WriteMetadata)->Apply(WriteMetadataSetArgs);
Expand Down

0 comments on commit 0db476c

Please sign in to comment.