mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 18:23:41 +08:00
(INTERNAL): While eating trailing zeros handling hexdigits correctly.
This commit is contained in:
parent
ce3a4adf6d
commit
350e9b8552
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user