Skip to content

Commit

Permalink
Add static_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 30, 2024
1 parent b194430 commit d57773e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/record_batch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,8 @@ Result<std::shared_ptr<Array>> RecordBatch::MakeStatisticsArray(
return static_cast<DoubleBuilder*>(builder)->Append(value);
}
Status operator()(const std::string& value) {
return static_cast<StringBuilder*>(builder)->Append(value.data(),
value.size());
return static_cast<StringBuilder*>(builder)->Append(
value.data(), static_cast<int32_t>(value.size()));
}
} visitor;
visitor.builder = values_builders[values_type_index].get();
Expand Down

0 comments on commit d57773e

Please sign in to comment.