From 04f15d9dc172d66997d1ffcaa1a5b686c0eb3854 Mon Sep 17 00:00:00 2001 From: lilei19 Date: Sun, 15 Jan 2023 16:15:54 +0800 Subject: [PATCH] fix the bug of strtold --- libs/libc/stdlib/lib_strtold.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/libc/stdlib/lib_strtold.c b/libs/libc/stdlib/lib_strtold.c index 3307150424..4814578bac 100644 --- a/libs/libc/stdlib/lib_strtold.c +++ b/libs/libc/stdlib/lib_strtold.c @@ -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;