From 9d76b043c5e825e50f7e99e3f9e46ad43373930e Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Fri, 26 Feb 2021 11:21:20 -0500 Subject: [PATCH] Minor typo. --- include/fast_float/parse_number.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fast_float/parse_number.h b/include/fast_float/parse_number.h index f69b741..042d8c6 100644 --- a/include/fast_float/parse_number.h +++ b/include/fast_float/parse_number.h @@ -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 ((last - first >= 8) && fastfloat_strncasecmp(first + 1, "infinity", 8)) { + if ((last - first >= 9) && fastfloat_strncasecmp(first + 1, "infinity", 8)) { answer.ptr = first + 9; } else { answer.ptr = first + 4;