Skip to content

Commit

Permalink
change constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
emkornfield committed Oct 21, 2020
1 parent 4e2c680 commit f582b8a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cpp/src/arrow/util/basic_decimal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,7 @@ struct uint128_t {
val_ = (static_cast<__uint128_t>(decimal.high_bits()) << 64) | decimal.low_bits();
}

explicit uint128_t(std::array<uint64_t, 2> value) {
val_ = (static_cast<__uint128_t>(value[1] << 64)) | values[0];
}
explicit uint128_t(uint64_t value) : val_(value) {}

uint64_t hi() { return val_ >> 64; }
uint64_t lo() { return val_ & kInt64Mask; }
Expand Down

0 comments on commit f582b8a

Please sign in to comment.