diff --git a/cpp/src/arrow/record_batch.cc b/cpp/src/arrow/record_batch.cc index c644e0f86158a..298e693ad803a 100644 --- a/cpp/src/arrow/record_batch.cc +++ b/cpp/src/arrow/record_batch.cc @@ -597,7 +597,7 @@ Result> 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(strlen(key)))); const auto values_type_index = values_type_indexes[nth_statistics]; RETURN_NOT_OK(items_builder->Append(values_type_index)); struct Visitor {