Skip to content

Commit

Permalink
avoid ASAN issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroshade committed Sep 30, 2024
1 parent 48639e3 commit b110605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/util/decimal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ struct Decimal64RealConversion
int64_t result = x.value();
uint64_t shifted = 0;
if (bits > 0) {
shifted = (result << (64 - bits));
shifted = (static_cast<uint64_t>(result) << (64 - bits));
result >>= bits;
}
constexpr uint64_t kHalf = 0x8000000000000000ULL;
Expand Down

0 comments on commit b110605

Please sign in to comment.