diff --git a/cpp/src/arrow/array/data.cc b/cpp/src/arrow/array/data.cc index 678513fd4d151..186682be3009e 100644 --- a/cpp/src/arrow/array/data.cc +++ b/cpp/src/arrow/array/data.cc @@ -568,7 +568,7 @@ std::shared_ptr ArraySpan::ToArrayData() const { util::span> ArraySpan::GetVariadicBuffers() const { DCHECK(HasVariadicBuffers()); return {buffers[2].data_as>(), - buffers[2].size / sizeof(std::shared_ptr)}; + static_cast(buffers[2].size) / sizeof(std::shared_ptr)}; } bool ArraySpan::HasVariadicBuffers() const {