changeset 6930:188d89808804

* strtod.c (strtod): cast the argument of tolower to unsigned char.
author Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
date Thu, 06 Jul 2006 17:23:55 +0000
parents 7a1f12aa78c3
children 5ea6fd01516c
files lib/ChangeLog lib/strtod.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -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>.
--- a/lib/strtod.c
+++ b/lib/strtod.c
@@ -101,7 +101,7 @@
   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;