From: Ralf Wildenhues Date: Thu, 6 Jul 2006 17:23:55 +0000 (+0000) Subject: * strtod.c (strtod): cast the argument of tolower to unsigned char. X-Git-Tag: cvs-readonly~2256 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=0cede465b9fe7b5024402663694b3d8bcbd22240;p=gnulib.git * strtod.c (strtod): cast the argument of tolower to unsigned char. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index d2782def5..a29f43620 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2006-07-06 Ralf Wildenhues + + * strtod.c (strtod): cast the argument of tolower to unsigned char. + 2006-07-05 Paul Eggert * memcasecmp.c: Include . diff --git a/lib/strtod.c b/lib/strtod.c index a59858ad5..73f01f974 100644 --- a/lib/strtod.c +++ b/lib/strtod.c @@ -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;