mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +08:00
Added missing FASTFLOAT_ALLOWS_LEADING_PLUS ifdef check in parse_infnan
This commit is contained in:
parent
808cd24919
commit
c8886eb31d
@ -29,6 +29,11 @@ from_chars_result parse_infnan(const char *first, const char *last, T &value) n
|
||||
minusSign = true;
|
||||
++first;
|
||||
}
|
||||
#if FASTFLOAT_ALLOWS_LEADING_PLUS // disabled by default
|
||||
if (*first == '+') {
|
||||
++first;
|
||||
}
|
||||
#endif
|
||||
if (last - first >= 3) {
|
||||
if (fastfloat_strncasecmp(first, "nan", 3)) {
|
||||
answer.ptr = (first += 3);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user