mirror of
https://github.com/apache/nuttx.git
synced 2026-05-19 03:03:37 +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 */
|
||||
|
||||
s -= i;
|
||||
if (*s == '0' && (*(s + 1) | 32) == 'x')
|
||||
{
|
||||
s += 2;
|
||||
|
||||
Reference in New Issue
Block a user