We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 918938a commit 39af8f9Copy full SHA for 39af8f9
include/boost/decimal/dpd_conversion.hpp
@@ -637,7 +637,7 @@ constexpr auto from_dpd_d64(std::uint64_t dpd) noexcept
637
}
638
639
// The bit lengths are the same as used in the standard bid format
640
- const auto sign {(dpd & detail::d32_sign_mask) != 0};
+ const auto sign {(dpd & detail::d64_sign_mask) != 0};
641
const auto combination_field_bits {(dpd & detail::d64_combination_field_mask) >> 58U};
642
const auto exponent_field_bits {(dpd & detail::d64_exponent_mask) >> 50U};
643
auto significand_bits {(dpd & detail::d64_significand_mask)};
0 commit comments