1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
* stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
	point correctly [PR libc/4993].
This commit is contained in:
Ulrich Drepper
2003-03-29 19:05:56 +00:00
parent ea473bad4c
commit d8592d04fa
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2003-03-29 Ulrich Drepper <drepper@redhat.com> 2003-03-29 Ulrich Drepper <drepper@redhat.com>
* stdlib/strtod.c (INTERNAL): Recognize first digit after decimal
point correctly [PR libc/4993].
* sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Avoid
netlink_open calls if netlink is known to not be available. netlink_open calls if netlink is known to not be available.

View File

@ -568,7 +568,7 @@ INTERNAL (STRTOF) (nptr, endptr, group LOCALE_PARAM)
for (cnt = 0; decimal[cnt] != '\0'; ++cnt) for (cnt = 0; decimal[cnt] != '\0'; ++cnt)
if (cp[cnt] != decimal[cnt]) if (cp[cnt] != decimal[cnt])
break; break;
if (decimal[cnt] == '\0' && cp[1] >= '0' && cp[1] <= '9') if (decimal[cnt] == '\0' && cp[cnt] >= '0' && cp[cnt] <= '9')
{ {
/* We accept it. This funny construct is here only to indent /* We accept it. This funny construct is here only to indent
the code directly. */ the code directly. */