We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0bd573 commit 9d76b04Copy full SHA for 9d76b04
include/fast_float/parse_number.h
@@ -49,7 +49,7 @@ from_chars_result parse_infnan(const char *first, const char *last, T &value) n
49
}
50
51
if (fastfloat_strncasecmp(first, "+inf", 4) || fastfloat_strncasecmp(first, "-inf", 4)) {
52
- if ((last - first >= 8) && fastfloat_strncasecmp(first + 1, "infinity", 8)) {
+ if ((last - first >= 9) && fastfloat_strncasecmp(first + 1, "infinity", 8)) {
53
answer.ptr = first + 9;
54
} else {
55
answer.ptr = first + 4;
0 commit comments