Skip to content

Commit 7a80fbe

Browse files
committed
Remove incorrect default case
1 parent a0d1401 commit 7a80fbe

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

include/boost/decimal/decimal128.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,6 @@ constexpr auto decimal128::unbiased_exponent() const noexcept -> std::uint64_t
638638
case detail::d128_comb_01_mask.high:
639639
expval = UINT64_C(0b01000000000000);
640640
break;
641-
default:
642-
BOOST_DECIMAL_UNREACHABLE;
643641
}
644642

645643
expval |= (bits_.high & detail::d128_exponent_mask.high) >> high_word_significand_bits;

include/boost/decimal/decimal32.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,8 +1360,6 @@ constexpr auto decimal32::unbiased_exponent() const noexcept -> std::uint32_t
13601360
case detail::d32_comb_01_mask:
13611361
expval = UINT32_C(0b01000000);
13621362
break;
1363-
default:
1364-
BOOST_DECIMAL_UNREACHABLE;
13651363
}
13661364

13671365
expval |= (bits_ & detail::d32_exponent_mask) >> detail::d32_significand_bits;

include/boost/decimal/decimal64.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,8 +1002,6 @@ constexpr auto decimal64::unbiased_exponent() const noexcept -> std::uint64_t
10021002
case detail::d64_comb_01_mask:
10031003
expval = UINT64_C(0b0100000000);
10041004
break;
1005-
default:
1006-
BOOST_DECIMAL_UNREACHABLE;
10071005
}
10081006

10091007
expval |= (bits_ & detail::d64_exponent_mask) >> detail::d64_significand_bits;

0 commit comments

Comments
 (0)