diff options
Diffstat (limited to 'newlib/libc/stdlib/strtod.c')
-rw-r--r-- | newlib/libc/stdlib/strtod.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/stdlib/strtod.c b/newlib/libc/stdlib/strtod.c index 2a76b10ce..8bb75ef0a 100644 --- a/newlib/libc/stdlib/strtod.c +++ b/newlib/libc/stdlib/strtod.c @@ -263,8 +263,8 @@ _strtod_l (struct _reent *ptr, const char *__restrict s00, char **__restrict se, #ifdef Honor_FLT_ROUNDS int rounding; #endif - struct lconv *lconv = __localeconv_l (loc); - int dec_len = strlen (lconv->decimal_point); + const char *decimal_point = __get_numeric_locale(loc)->decimal_point; + int dec_len = strlen (decimal_point); delta = bs = bd = NULL; sign = nz0 = nz = decpt = 0; @@ -344,7 +344,7 @@ _strtod_l (struct _reent *ptr, const char *__restrict s00, char **__restrict se, else z = 10*z + c - '0'; nd0 = nd; - if (strncmp (s, lconv->decimal_point, dec_len) == 0) + if (strncmp (s, decimal_point, dec_len) == 0) { decpt = 1; c = *(s += dec_len); |