# clang format

This commit is contained in:
IRainman 2025-09-18 22:57:06 +03:00
parent 097800a609
commit 384fcec12d
2 changed files with 5 additions and 4 deletions

View File

@ -59,9 +59,11 @@ from_chars_advanced(UC const *first, UC const *last, T &value,
* `new` or `malloc`). * `new` or `malloc`).
*/ */
FASTFLOAT_CONSTEXPR20 inline double FASTFLOAT_CONSTEXPR20 inline double
integer_times_pow10(uint64_t const mantissa, int const decimal_exponent) noexcept; integer_times_pow10(uint64_t const mantissa,
int const decimal_exponent) noexcept;
FASTFLOAT_CONSTEXPR20 inline double FASTFLOAT_CONSTEXPR20 inline double
integer_times_pow10(int64_t const mantissa, int const decimal_exponent) noexcept; integer_times_pow10(int64_t const mantissa,
int const decimal_exponent) noexcept;
/** /**
* from_chars for integer types. * from_chars for integer types.

View File

@ -254,8 +254,7 @@ clinger_fast_path_impl(uint64_t const mantissa, int64_t const exponent,
return true; return true;
} }
#endif #endif
value = T(mantissa) * value = T(mantissa) * binary_format<T>::exact_power_of_ten(exponent);
binary_format<T>::exact_power_of_ten(exponent);
#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN #ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
if (is_negative) { if (is_negative) {
value = -value; value = -value;