Skip to content

Commit

Permalink
Update cpp/src/arrow/array/data.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
bkietz authored Jun 15, 2023
1 parent eadcefc commit 077168a
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 @@ -384,7 +384,7 @@ void ArraySpan::FillFromScalar(const Scalar& value) {
// Dense union needs scratch space to store both offsets and a type code
struct UnionScratchSpace {
uint8_t type_code;
alignas(int32_t) uint8_t offsets[sizeof(int32_t) * 2];
alignas(int64_t) uint8_t offsets[sizeof(int32_t) * 2];
};
auto* union_scratch_space = new (scratch_space) UnionScratchSpace{};

Expand Down

0 comments on commit 077168a

Please sign in to comment.