summary refs log tree commit diff
path: root/stdlib/strtod.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-03-17 17:40:02 +0000
committerRoland McGrath <roland@gnu.org>1995-03-17 17:40:02 +0000
commit04282ed1ddcb6bf566632146a45ce02b152592da (patch)
treee017f97c4bd2892f8f450a679f9c02255cd787c8 /stdlib/strtod.c
parentb3fe1350509737887ab1f2ac8c4efb547af80b58 (diff)
downloadglibc-04282ed1ddcb6bf566632146a45ce02b152592da.tar.gz
glibc-04282ed1ddcb6bf566632146a45ce02b152592da.tar.xz
glibc-04282ed1ddcb6bf566632146a45ce02b152592da.zip
Undo bogus change by drepper
Diffstat (limited to 'stdlib/strtod.c')
-rw-r--r--stdlib/strtod.c12
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)