From: Ulrich Drepper Date: Thu, 20 Mar 2003 01:00:46 +0000 (+0000) Subject: (INTERNAL): While eating trailing zeros handling hexdigits correctly. X-Git-Tag: cvs/glibc-2_3_3~1150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=350e9b8552f904e83068a1cd46d4a089df3f2d0a;p=thirdparty%2Fglibc.git (INTERNAL): While eating trailing zeros handling hexdigits correctly. --- diff --git a/stdlib/strtod.c b/stdlib/strtod.c index 820307a0ece..afe4359ca48 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'))