diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-03-20 01:00:46 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-03-20 01:00:46 +0000 |
commit | 350e9b8552f904e83068a1cd46d4a089df3f2d0a (patch) | |
tree | 61236e2c877dda6a323d2cefd9ba613155c4c011 | |
parent | ce3a4adf6d910de09bc9ebe38f3184f7fdf58016 (diff) | |
download | glibc-350e9b8552f904e83068a1cd46d4a089df3f2d0a.tar.gz glibc-350e9b8552f904e83068a1cd46d4a089df3f2d0a.tar.xz glibc-350e9b8552f904e83068a1cd46d4a089df3f2d0a.zip |
(INTERNAL): While eating trailing zeros handling hexdigits correctly.
-rw-r--r-- | stdlib/strtod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/strtod.c b/stdlib/strtod.c index 820307a0ec..afe4359ca4 100644 --- a/stdlib/strtod.c +++ b/stdlib/strtod.c @@ -882,7 +882,7 @@ INTERNAL (STRTOF) (nptr, endptr, group LOCALE_PARAM) if (dig_no == int_no && dig_no > 0 && exponent < 0) do { - while (expp[-1] < L_('0') || expp[-1] > L_('9')) + while (! (base == 16 ? ISXDIGIT (expp[-1]) : ISDIGIT (expp[-1]))) --expp; if (expp[-1] != L_('0')) |