fix the some else bug of strtold

I accidentally changed it when I was optimizing the code

Signed-off-by: lilei19 <lilei19@xiaomi.com>
This commit is contained in:
lilei19 2023-01-13 18:42:35 +08:00 committed by Petro Karashchenko
parent 03c572c372
commit 1f95cfdde8

View File

@ -88,7 +88,7 @@
#define shgetc(f) (*(f)++)
#define shunget(f) ((f)--)
#define ifexist(a,b) do { if ((*a) != NULL) {*(a) = (b);} } while (0)
#define ifexist(a,b) do { if ((a) != NULL) {*(a) = (b);} } while (0)
/****************************************************************************
* Private Functions
@ -394,7 +394,7 @@ static long_double decfloat(FAR char *ptr, FAR char **endptr)
}
}
if (num_digit <= 9 && num_decimal == 0)
if (num_digit < 9 && num_decimal == 0)
{
return x;
}