Skip to content

Commit ad18eb3

Browse files
committed
Fix MSVC 14.2 warning
1 parent 86a904d commit ad18eb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/boost/int128/detail/int128_imp.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2024,7 +2024,7 @@ BOOST_INT128_HOST_DEVICE BOOST_INT128_FORCE_INLINE constexpr int128_t library_mu
20242024
const auto c {rhs.low >> 32U};
20252025
const auto d {rhs.low & UINT32_MAX};
20262026

2027-
int128_t result { static_cast<std::int64_t>(static_cast<std::uint64_t>(lhs.high) * rhs.low + static_cast<std::uint64_t>(lhs.low) * rhs.high + a * c), b * d };
2027+
int128_t result { static_cast<std::int64_t>(static_cast<std::uint64_t>(lhs.high) * rhs.low + lhs.low * static_cast<std::uint64_t>(rhs.high) + a * c), b * d };
20282028
result += signed_shift_left_32(a * d) + signed_shift_left_32(b * c);
20292029

20302030
return result;

0 commit comments

Comments
 (0)