Skip to content

Commit c15f0a5

Browse files
committed
Fix sign conversion warnings
1 parent a7d7adb commit c15f0a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/boost/decimal/detail/emulated128.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ constexpr auto operator+(const int128& lhs, const int128& rhs) noexcept -> int12
13351335
unsigned long long high {};
13361336

13371337
const auto carry {BOOST_DECIMAL_ADD_CARRY(0, lhs.low, rhs.low, &low)};
1338-
BOOST_DECIMAL_ADD_CARRY(carry, lhs.high, rhs.high, &high);
1338+
BOOST_DECIMAL_ADD_CARRY(carry, static_cast<std::uint64_t>(lhs.high), static_cast<std::uint64_t>(rhs.high), &high);
13391339

13401340
return {static_cast<std::int64_t>(high), low};
13411341
}
@@ -1366,7 +1366,6 @@ constexpr auto operator-(const int128& lhs, const int128& rhs) noexcept -> int12
13661366
return int128{new_high, new_low};
13671367
}
13681368

1369-
13701369
template <>
13711370
constexpr int countl_zero<uint128>(uint128 x) noexcept
13721371
{

0 commit comments

Comments
 (0)