From d57773e18d3252435f3961e0385c79b5a904fc66 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Mon, 30 Sep 2024 20:48:15 +0900 Subject: [PATCH] Add static_cast --- cpp/src/arrow/record_batch.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/arrow/record_batch.cc b/cpp/src/arrow/record_batch.cc index 097393e2191ce..c644e0f86158a 100644 --- a/cpp/src/arrow/record_batch.cc +++ b/cpp/src/arrow/record_batch.cc @@ -616,8 +616,8 @@ Result> RecordBatch::MakeStatisticsArray( return static_cast(builder)->Append(value); } Status operator()(const std::string& value) { - return static_cast(builder)->Append(value.data(), - value.size()); + return static_cast(builder)->Append( + value.data(), static_cast(value.size())); } } visitor; visitor.builder = values_builders[values_type_index].get();