From 04282ed1ddcb6bf566632146a45ce02b152592da Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 17 Mar 1995 17:40:02 +0000 Subject: Undo bogus change by drepper --- stdlib/strtod.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'stdlib/strtod.c') 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) -- cgit v1.2.3