Skip to content

Commit

Permalink
Add explicit cast
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 30, 2024
1 parent d57773e commit 5a00c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/record_batch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ Result<std::shared_ptr<Array>> RecordBatch::MakeStatisticsArray(
}
RETURN_NOT_OK(values_builder->Append());
}
RETURN_NOT_OK(keys_builder->Append(key, strlen(key)));
RETURN_NOT_OK(keys_builder->Append(key, static_cast<int32_t>(strlen(key))));
const auto values_type_index = values_type_indexes[nth_statistics];
RETURN_NOT_OK(items_builder->Append(values_type_index));
struct Visitor {
Expand Down

0 comments on commit 5a00c48

Please sign in to comment.