Skip to content

Commit

Permalink
Cast 18 to matching type size_t for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Aug 23, 2017
1 parent 8833904 commit 5716010
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 @@ -39,7 +39,7 @@ Int128::Int128(const std::string& str) : Int128() {
auto posn = static_cast<size_t>(is_negative);

while (posn < length) {
const size_t group = std::min(18UL, length - posn);
const size_t group = std::min(static_cast<size_t>(18), length - posn);
const auto chunk = static_cast<int64_t>(std::stoll(str.substr(posn, group)));
const auto multiple =
static_cast<int64_t>(std::pow(10.0, static_cast<double>(group)));
Expand Down

0 comments on commit 5716010

Please sign in to comment.