From f1bc62c7cd927e0eeec42a7508ee4537cec46b55 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Thu, 2 Nov 2023 15:43:46 +0900 Subject: [PATCH] GH-38556: [C++] Add missing explicit int64_t cast for i386 This was introduced by GH-37792. --- cpp/src/arrow/array/data.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {