mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +08:00
Minor typo.
This commit is contained in:
parent
e0bd573530
commit
9d76b043c5
@ -49,7 +49,7 @@ from_chars_result parse_infnan(const char *first, const char *last, T &value) n
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (fastfloat_strncasecmp(first, "+inf", 4) || fastfloat_strncasecmp(first, "-inf", 4)) {
|
if (fastfloat_strncasecmp(first, "+inf", 4) || fastfloat_strncasecmp(first, "-inf", 4)) {
|
||||||
if ((last - first >= 8) && fastfloat_strncasecmp(first + 1, "infinity", 8)) {
|
if ((last - first >= 9) && fastfloat_strncasecmp(first + 1, "infinity", 8)) {
|
||||||
answer.ptr = first + 9;
|
answer.ptr = first + 9;
|
||||||
} else {
|
} else {
|
||||||
answer.ptr = first + 4;
|
answer.ptr = first + 4;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user