* 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 d2782def54156611ef67d109418f02cc4cb6608a..a29f4362071d84840ac560e4e20d3498cc51d15c 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 a59858ad5b13c32c8b05e45e5c5588a81ab636ff..73f01f974a4ae55cfaca491c717965b96065858c 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;