Skip to content

Commit 6106eb4

Browse files
Finish rebase
1 parent 35ce3d5 commit 6106eb4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libc/src/__support/float_to_string.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,8 @@ template <> class FloatToString<long double> {
642642

643643
// static constexpr size_t FLOAT_AS_INT_WIDTH = 16384;
644644
static constexpr size_t FLOAT_AS_INT_WIDTH =
645-
internal::div_ceil(fputil::FPBits<long double>::MAX_EXPONENT -
646-
fputil::FPBits<long double>::EXPONENT_BIAS,
645+
internal::div_ceil(fputil::FPBits<long double>::MAX_BIASED_EXPONENT -
646+
FloatProp::EXP_BIAS,
647647
64) *
648648
64;
649649
// static constexpr size_t EXTRA_INT_WIDTH = 128;
@@ -750,7 +750,8 @@ template <> class FloatToString<long double> {
750750
exponent < 0
751751
? 0
752752
: static_cast<uint32_t>(exponent + (IDX_SIZE - 1)) / IDX_SIZE;
753-
const uint32_t len = internal::length_for_num(idx * IDX_SIZE, FRACTION_LEN);
753+
const uint32_t len =
754+
internal::length_for_num(idx * IDX_SIZE, FRACTION_LEN);
754755
return len;
755756
} else {
756757
return 0;

0 commit comments

Comments
 (0)