Use (unsigned char) cast for ctype macro
This commit is contained in:
parent
db07ef76da
commit
b9a10b5810
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user