From 350e9b8552f904e83068a1cd46d4a089df3f2d0a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 20 Mar 2003 01:00:46 +0000 Subject: (INTERNAL): While eating trailing zeros handling hexdigits correctly. --- stdlib/strtod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stdlib') diff --git a/stdlib/strtod.c b/stdlib/strtod.c index 820307a0ec..afe4359ca4 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')) -- cgit 1.4.1