fix the bug of strtold
This commit is contained in:
parent
f9c8b4015f
commit
04f15d9dc1
@ -714,6 +714,7 @@ static long_double strtox(FAR const char *str, FAR char **endptr, int flag)
|
|||||||
|
|
||||||
/* Process optional 0x prefix */
|
/* Process optional 0x prefix */
|
||||||
|
|
||||||
|
s -= i;
|
||||||
if (*s == '0' && (*(s + 1) | 32) == 'x')
|
if (*s == '0' && (*(s + 1) | 32) == 'x')
|
||||||
{
|
{
|
||||||
s += 2;
|
s += 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user