From b9a10b58106882b8972792b65c32ddcd412c67ac Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Wed, 2 Sep 2009 04:56:30 +0000 Subject: [PATCH] Use (unsigned char) cast for ctype macro --- lib/libc/stdtime/strptime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c index c7de35c0d686..51d41ed6b9b1 100644 --- a/lib/libc/stdtime/strptime.c +++ b/lib/libc/stdtime/strptime.c @@ -529,7 +529,7 @@ _strptime(const char *buf, const char *fmt, struct tm *tm, int *GMTp) buf++; i = 0; for (len = 4; len > 0; len--) { - if (isdigit((int)*buf)) { + if (isdigit((unsigned char)*buf)) { i *= 10; i += *buf - '0'; buf++;