1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

Undo bogus change by drepper

This commit is contained in:
Roland McGrath
1995-03-17 17:40:02 +00:00
parent b3fe135050
commit 04282ed1dd
4 changed files with 16 additions and 20 deletions

View File

@ -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)