mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +08:00
Update include/fast_float/ascii_number.h
Co-authored-by: Anders Dalvander <anders.dalvander@gmail.com>
This commit is contained in:
parent
11a6232927
commit
d4c573de0b
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user