fix the bug of strtold

This commit is contained in:
lilei19 2023-01-15 16:15:54 +08:00 committed by Xiang Xiao
parent f9c8b4015f
commit 04f15d9dc1

View File

@ -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;