about summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-20 01:00:46 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-20 01:00:46 +0000
commit350e9b8552f904e83068a1cd46d4a089df3f2d0a (patch)
tree61236e2c877dda6a323d2cefd9ba613155c4c011 /stdlib
parentce3a4adf6d910de09bc9ebe38f3184f7fdf58016 (diff)
downloadglibc-350e9b8552f904e83068a1cd46d4a089df3f2d0a.tar.gz
glibc-350e9b8552f904e83068a1cd46d4a089df3f2d0a.tar.xz
glibc-350e9b8552f904e83068a1cd46d4a089df3f2d0a.zip
(INTERNAL): While eating trailing zeros handling hexdigits correctly.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/strtod.c2
1 files changed, 1 insertions, 1 deletions
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'))