* strtod.c (strtod): cast the argument of tolower to unsigned char.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 6 Jul 2006 17:23:55 +0000 (17:23 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 6 Jul 2006 17:23:55 +0000 (17:23 +0000)
lib/ChangeLog
lib/strtod.c

index d2782de..a29f436 100644 (file)
@@ -1,3 +1,7 @@
+2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * strtod.c (strtod): cast the argument of tolower to unsigned char.
+
 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
 
        * memcasecmp.c: Include <limits.h>.
index a59858a..73f01f9 100644 (file)
@@ -101,7 +101,7 @@ strtod (const char *nptr, char **endptr)
   if (!got_digit)
     goto noconv;
 
-  if (tolower (*s) == 'e')
+  if (tolower ((unsigned char) *s) == 'e')
     {
       /* Get the exponent specified after the `e' or `E'.  */
       int save = errno;