fix for ancient standard.

This commit is contained in:
HedgehogInTheCPP 2026-08-21 21:17:49 +03:00
parent ce06f10c2a
commit b61afb726b

View File

@ -30,7 +30,7 @@ fastfloat_really_inline constexpr bool has_simd_opt() noexcept {
// Next function can be micro-optimized, but compilers are entirely
// able to optimize it well.
template <typename UC>
fastfloat_really_inline constexpr bool is_integer(UC c) noexcept {
fastfloat_really_inline FASTFLOAT_CONSTEXPR14 bool is_integer(UC c) noexcept {
const auto d = c - UC('0');
// UC may be signed.
return d >= 0 && d <= 9;