(INTERNAL): While eating trailing zeros handling hexdigits correctly.

This commit is contained in:
Ulrich Drepper 2003-03-20 01:00:46 +00:00
parent ce3a4adf6d
commit 350e9b8552

View 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'))