mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
fix the bug of strtold
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user