Skip to content

Commit d4c573d

Browse files
RealTimeChrisdalle
andauthored
Update include/fast_float/ascii_number.h
Co-authored-by: Anders Dalvander <[email protected]>
1 parent 11a6232 commit d4c573d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: include/fast_float/ascii_number.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ template <typename UC> fastfloat_really_inline constexpr bool has_simd_opt() {
3232
// able to optimize it well.
3333
template <typename UC>
3434
fastfloat_really_inline constexpr bool is_integer(UC c) noexcept {
35-
return static_cast<uint8_t>(c - '0') < 10;
35+
return static_cast<uint8_t>(c - UC('0')) < 10;
3636
}
3737

3838
fastfloat_really_inline constexpr uint64_t byteswap(uint64_t val) {

0 commit comments

Comments
 (0)