From 074464ce3ef6e303e8650c8550c4e3562c3bf4e4 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Wed, 5 Jul 2023 17:01:18 +0200 Subject: [PATCH] Change 80 bit mask --- include/boost/charconv/detail/compute_float80.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/charconv/detail/compute_float80.hpp b/include/boost/charconv/detail/compute_float80.hpp index 0f4a2fd..7af485e 100644 --- a/include/boost/charconv/detail/compute_float80.hpp +++ b/include/boost/charconv/detail/compute_float80.hpp @@ -177,8 +177,8 @@ inline uint128 mask_mantissa(uint256 z) noexcept; template inline uint128 mask_mantissa(uint256 z) noexcept { - static constexpr uint256 mask {0x1FFFFFFFFFFFF, (std::numeric_limits::max)()}; - auto temp = z >> 64 & mask; + //static constexpr uint256 mask {0, (std::numeric_limits::max)()}; + auto temp = z >> 64; return temp.high; } #elif BOOST_CHARCONV_LDBL_BITS == 128