Use (unsigned char) cast for ctype macro

This commit is contained in:
Andrey A. Chernov 2009-09-02 04:56:30 +00:00
parent db07ef76da
commit b9a10b5810

View File

@ -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++;