Skip to content

Commit 8102c85

Browse files
authored
Merge pull request #1148 from cppalliance/ci_error
Fix CI error
2 parents 0afacba + be919dc commit 8102c85

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/boost/decimal/decimal128_t.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ constexpr decimal128_t::decimal128_t(T1 coeff, T2 exp, bool is_negative) noexcep
791791
else if (coeff_digits + biased_exp <= detail::precision_v<decimal128_t>)
792792
{
793793
// Handle the case of sub-normals that don't need further rounding
794-
bits_.high = sign ? detail::d128_sign_mask : UINT64_C(0); // Reset the sign bit
794+
bits_.high = is_negative ? detail::d128_sign_mask : UINT64_C(0); // Reset the sign bit
795795
const auto zeros {detail::remove_trailing_zeros(reduced_coeff)};
796796
biased_exp += static_cast<int>(zeros.number_of_removed_zeros);
797797
reduced_coeff = zeros.trimmed_number;

include/boost/decimal/decimal32_t.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ constexpr decimal32_t::decimal32_t(T1 coeff, T2 exp, bool is_negative) noexcept
713713
else if (coeff_digits + biased_exp <= detail::precision)
714714
{
715715
// Handle the case of sub-normals that don't need further rounding
716-
bits_ = sign ? detail::d32_sign_mask : UINT32_C(0); // Reset the sign bit
716+
bits_ = is_negative ? detail::d32_sign_mask : UINT32_C(0); // Reset the sign bit
717717
const auto zeros {detail::remove_trailing_zeros(reduced_coeff)};
718718
biased_exp += static_cast<int>(zeros.number_of_removed_zeros);
719719
reduced_coeff = zeros.trimmed_number;

include/boost/decimal/decimal64_t.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ constexpr decimal64_t::decimal64_t(T1 coeff, T2 exp, bool is_negative) noexcept
707707
else if (coeff_digits + biased_exp <= detail::precision_v<decimal64_t>)
708708
{
709709
// Handle the case of sub-normals that don't need further rounding
710-
bits_ = sign ? detail::d64_sign_mask : UINT64_C(0); // Reset the sign bit
710+
bits_ = is_negative ? detail::d64_sign_mask : UINT64_C(0); // Reset the sign bit
711711
const auto zeros {detail::remove_trailing_zeros(reduced_coeff)};
712712
biased_exp += static_cast<int>(zeros.number_of_removed_zeros);
713713
reduced_coeff = zeros.trimmed_number;

0 commit comments

Comments
 (0)