Skip to content

Commit e839344

Browse files
committed
Fix formatting and add 0 case
1 parent 9848949 commit e839344

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

include/boost/decimal/gcc_decimal32.hpp

+7-4
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,17 @@ BOOST_DECIMAL_NO_DISCARD inline auto decode_gccd32_unbiased_exponent(std::uint32
130130
{
131131
case detail::d32_comb_11_mask:
132132
// bits 2 and 3 are the exp part of the combination field
133-
expval = (bits_ & detail::d32_comb_11_exp_bits) >> (detail::d32_significand_bits + 1);
134-
break;
133+
expval = (bits_ & detail::d32_comb_11_exp_bits) >> (detail::d32_significand_bits + 1);
134+
break;
135135
case detail::d32_comb_10_mask:
136136
expval = UINT32_C(0b10000000);
137-
break;
137+
break;
138138
case detail::d32_comb_01_mask:
139139
expval = UINT32_C(0b01000000);
140-
break;
140+
break;
141+
case 0U:
142+
expval = UINT32_C(0b00000000);
143+
break;
141144
// LCOV_EXCL_START
142145
default:
143146
BOOST_DECIMAL_UNREACHABLE;

0 commit comments

Comments
 (0)