Skip to content

Commit 9d76b04

Browse files
committed
Minor typo.
1 parent e0bd573 commit 9d76b04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/fast_float/parse_number.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ from_chars_result parse_infnan(const char *first, const char *last, T &value) n
4949
}
5050

5151
if (fastfloat_strncasecmp(first, "+inf", 4) || fastfloat_strncasecmp(first, "-inf", 4)) {
52-
if ((last - first >= 8) && fastfloat_strncasecmp(first + 1, "infinity", 8)) {
52+
if ((last - first >= 9) && fastfloat_strncasecmp(first + 1, "infinity", 8)) {
5353
answer.ptr = first + 9;
5454
} else {
5555
answer.ptr = first + 4;

0 commit comments

Comments
 (0)