Skip to content

Commit

Permalink
fix ubsan
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroshade committed Sep 30, 2024
1 parent 1d97e27 commit 39032f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/util/basic_decimal.h
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ class ARROW_EXPORT BasicDecimal64 : public SmallBasicDecimal<int64_t> {

/// \brief Multiply this number by another. The result is truncated to 32 bits.
BasicDecimal64& operator*=(const BasicDecimal64& right) {
value_ *= right.value_;
value_ *= static_cast<uint64_t>(right.value_);
return *this;
}

Expand Down

0 comments on commit 39032f2

Please sign in to comment.