Skip to content

Commit c4bd2af

Browse files
committed
Fix platform dependent shortening error
1 parent 471ebb2 commit c4bd2af

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/boost/decimal/detail/mul_impl.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,10 @@ BOOST_DECIMAL_FORCE_INLINE constexpr auto d64_mul_impl(T lhs_sig, U lhs_exp, boo
165165
return {res_sig_64, res_exp, sign};
166166
}
167167

168-
template <typename ReturnType, typename T1, typename T2>
169-
constexpr auto d128_mul_impl(T1 lhs_sig, std::int32_t lhs_exp, bool lhs_sign,
170-
T2 rhs_sig, std::int32_t rhs_exp, bool rhs_sign) noexcept -> ReturnType
168+
template <typename ReturnType, BOOST_DECIMAL_INTEGRAL T1, BOOST_DECIMAL_INTEGRAL U1,
169+
BOOST_DECIMAL_INTEGRAL T2, BOOST_DECIMAL_INTEGRAL U2>
170+
constexpr auto d128_mul_impl(T1 lhs_sig, U1 lhs_exp, bool lhs_sign,
171+
T2 rhs_sig, U2 rhs_exp, bool rhs_sign) noexcept -> ReturnType
171172
{
172173
bool sign {lhs_sign != rhs_sign};
173174

0 commit comments

Comments
 (0)