Skip to content

Commit 351e4d3

Browse files
committed
type usage fixes.
1 parent 147cf3b commit 351e4d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/fast_float/decimal_to_binary.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ 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-
auto 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 = product.high >> 63;
145+
auto const shift = upperbit + 64 - binary::mantissa_explicit_bits() - 3;
146146

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

0 commit comments

Comments
 (0)