diff options
author | Roland McGrath <roland@gnu.org> | 1995-03-17 17:40:02 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-03-17 17:40:02 +0000 |
commit | 04282ed1ddcb6bf566632146a45ce02b152592da (patch) | |
tree | e017f97c4bd2892f8f450a679f9c02255cd787c8 /stdlib/strtod.c | |
parent | b3fe1350509737887ab1f2ac8c4efb547af80b58 (diff) | |
download | glibc-04282ed1ddcb6bf566632146a45ce02b152592da.tar glibc-04282ed1ddcb6bf566632146a45ce02b152592da.tar.gz glibc-04282ed1ddcb6bf566632146a45ce02b152592da.tar.bz2 glibc-04282ed1ddcb6bf566632146a45ce02b152592da.zip |
Undo bogus change by drepper
Diffstat (limited to 'stdlib/strtod.c')
-rw-r--r-- | stdlib/strtod.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/stdlib/strtod.c b/stdlib/strtod.c index dcec00c5d7..78f480a600 100644 --- a/stdlib/strtod.c +++ b/stdlib/strtod.c @@ -405,13 +405,9 @@ INTERNAL (STRTOF) (nptr, endptr, group) Return current read pointer. */ if (!isdigit (c) && c != decimal) { - if (grouping) - /* Check the grouping of the digits. */ - tp = correctly_grouped_prefix (start_of_digits, cp, thousands, - grouping); - else - tp = cp; - + tp = correctly_grouped_prefix (start_of_digits, cp, thousands, grouping); + /* If TP is at the start of the digits, there was no correctly + grouped prefix of the string; so no number found. */ RETURN (0.0, tp == start_of_digits ? nptr : tp); } @@ -558,7 +554,7 @@ INTERNAL (STRTOF) (nptr, endptr, group) assert (dig_no >= int_no); } - number_parsed: + number_parsed: /* The whole string is parsed. Store the address of the next character. */ if (endptr) |