mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
(INTERNAL): While eating trailing zeros handling hexdigits correctly.
This commit is contained in:
@ -882,7 +882,7 @@ INTERNAL (STRTOF) (nptr, endptr, group LOCALE_PARAM)
|
|||||||
if (dig_no == int_no && dig_no > 0 && exponent < 0)
|
if (dig_no == int_no && dig_no > 0 && exponent < 0)
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
while (expp[-1] < L_('0') || expp[-1] > L_('9'))
|
while (! (base == 16 ? ISXDIGIT (expp[-1]) : ISDIGIT (expp[-1])))
|
||||||
--expp;
|
--expp;
|
||||||
|
|
||||||
if (expp[-1] != L_('0'))
|
if (expp[-1] != L_('0'))
|
||||||
|
Reference in New Issue
Block a user