]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(INTERNAL): While eating trailing zeros handling hexdigits correctly.
authorUlrich Drepper <drepper@redhat.com>
Thu, 20 Mar 2003 01:00:46 +0000 (01:00 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 20 Mar 2003 01:00:46 +0000 (01:00 +0000)
stdlib/strtod.c

index 820307a0ece226b959011d87da3efcdcc7c3c68b..afe4359ca48905d3c61b914a15011f3a42f25809 100644 (file)
@@ -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'))