mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
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:
committed by
Petro Karashchenko
parent
03c572c372
commit
1f95cfdde8
@@ -88,7 +88,7 @@
|
|||||||
|
|
||||||
#define shgetc(f) (*(f)++)
|
#define shgetc(f) (*(f)++)
|
||||||
#define shunget(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
|
* 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;
|
return x;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user