Skip to content

Commit df6b574

Browse files
committed
* try to fix precision error on x86 platform step6.
1 parent cd62aad commit df6b574

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/fast_float/float_common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,11 +446,11 @@ typedef int_fast8_t am_bits_t;
446446

447447
// Power bias is signed for handling a denormal float
448448
// or an invalid mantissa.
449-
typedef int64_t am_pow_t; // can't be int_fast16_t because invalid_am_bias
449+
typedef int16_t am_pow_t; // can't be int_fast16_t because invalid_am_bias
450450
// hacks. Needs rewriting this.
451451

452452
// Bias so we can get the real exponent with an invalid adjusted_mantissa.
453-
constexpr static am_pow_t invalid_am_bias = -0x800000000000000;
453+
constexpr static am_pow_t invalid_am_bias = -0x8000;
454454

455455
struct adjusted_mantissa {
456456
am_mant_t mantissa;

0 commit comments

Comments
 (0)