Skip to content

Commit

Permalink
GH-38556: [C++] Add missing explicit int64_t cast for i386
Browse files Browse the repository at this point in the history
This was introduced by GH-37792.
  • Loading branch information
kou committed Nov 2, 2023
1 parent cead3dd commit fc3ea1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/array/data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ std::shared_ptr<ArrayData> ArraySpan::ToArrayData() const {
util::span<const std::shared_ptr<Buffer>> ArraySpan::GetVariadicBuffers() const {
DCHECK(HasVariadicBuffers());
return {buffers[2].data_as<std::shared_ptr<Buffer>>(),
buffers[2].size / sizeof(std::shared_ptr<Buffer>)};
static_cast<int64_t>(buffers[2].size / sizeof(std::shared_ptr<Buffer>))};
}

bool ArraySpan::HasVariadicBuffers() const {
Expand Down

0 comments on commit fc3ea1c

Please sign in to comment.