eat the sign, pointed out by uwe@

This commit is contained in:
christos 2020-09-01 00:35:29 +00:00
parent d21092d46f
commit 85da8872cb

View File

@ -404,6 +404,8 @@ static int checkstr(const char *s, const char *v)
static int checkinfnan(const char *s)
{
if (*s == '+' || *s == '-')
s++;
switch (tolower((unsigned char)*s)) {
case 'i':
return checkstr(s, "inf") || checkstr(s, "infinity");