From 0cede465b9fe7b5024402663694b3d8bcbd22240 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Thu, 6 Jul 2006 17:23:55 +0000 Subject: [PATCH] * strtod.c (strtod): cast the argument of tolower to unsigned char. --- lib/ChangeLog | 4 ++++ lib/strtod.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index d2782def54..a29f436207 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 a59858ad5b..73f01f974a 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; -- 2.30.2