Skip to content

Commit

Permalink
Cast so we have enough space to contain the integer
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Aug 23, 2017
1 parent 5716010 commit be220c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/util/int128.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace arrow {
namespace decimal {

static constexpr uint64_t kIntMask = 0xFFFFFFFF;
static constexpr uint64_t kCarryBit = 1UL << 32UL;
static constexpr auto kCarryBit = static_cast<uint64_t>(1) << static_cast<uint64_t>(32);

Int128::Int128(const std::string& str) : Int128() {
const size_t length = str.length();
Expand Down

0 comments on commit be220c8

Please sign in to comment.