Skip to content

Commit f9bac93

Browse files
committed
type usage fix.
1 parent 3d69a95 commit f9bac93

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/fast_float/decimal_to_binary.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,9 @@ compute_float(am_pow_t q, am_mant_t w) noexcept {
141141
// branchless approach: value128 product = compute_product(q, w); but in
142142
// practice, we can win big with the compute_product_approximation if its
143143
// additional branch is easily predicted. Which is best is data specific.
144-
am_bits_t const upperbit = static_cast<am_bits_t>(product.high >> 63);
145-
am_bits_t const shift = upperbit + 64 - binary::mantissa_explicit_bits() - 3;
144+
auto const upperbit = static_cast<am_bits_t>(product.high >> 63);
145+
auto const shift = static_cast<am_bits_t>(
146+
upperbit + 64 - binary::mantissa_explicit_bits() - 3);
146147

147148
// Shift right the mantissa to the correct position
148149
answer.mantissa = product.high >> shift;

0 commit comments

Comments
 (0)