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:
parent
03c572c372
commit
1f95cfdde8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user