mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-09-14 22:52:47 +08:00
fix for ancient standard.
This commit is contained in:
parent
ce06f10c2a
commit
b61afb726b
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user