Skip to content

Commit 39af8f9

Browse files
committed
Fix wrong mask usage
1 parent 918938a commit 39af8f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/decimal/dpd_conversion.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ constexpr auto from_dpd_d64(std::uint64_t dpd) noexcept
637637
}
638638

639639
// The bit lengths are the same as used in the standard bid format
640-
const auto sign {(dpd & detail::d32_sign_mask) != 0};
640+
const auto sign {(dpd & detail::d64_sign_mask) != 0};
641641
const auto combination_field_bits {(dpd & detail::d64_combination_field_mask) >> 58U};
642642
const auto exponent_field_bits {(dpd & detail::d64_exponent_mask) >> 50U};
643643
auto significand_bits {(dpd & detail::d64_significand_mask)};

0 commit comments

Comments
 (0)