Update include/fast_float/ascii_number.h

Co-authored-by: Anders Dalvander <anders.dalvander@gmail.com>
This commit is contained in:
RealTimeChris 2024-11-25 17:43:47 -05:00 committed by GitHub
parent 11a6232927
commit d4c573de0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ template <typename UC> fastfloat_really_inline constexpr bool has_simd_opt() {
// able to optimize it well. // able to optimize it well.
template <typename UC> template <typename UC>
fastfloat_really_inline constexpr bool is_integer(UC c) noexcept { fastfloat_really_inline constexpr bool is_integer(UC c) noexcept {
return static_cast<uint8_t>(c - '0') < 10; return static_cast<uint8_t>(c - UC('0')) < 10;
} }
fastfloat_really_inline constexpr uint64_t byteswap(uint64_t val) { fastfloat_really_inline constexpr uint64_t byteswap(uint64_t val) {