Mercurial > cpython-lru_cache-weakref
diff Modules/structmodule.c @ 7982:a909a2869ac5 legacy-trunk
Make new gcc -Wall happy
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 10 Apr 1998 22:27:42 +0000 |
| parents | 52125ce376a4 |
| children | ae746eab2a96 |
line wrap: on
line diff
--- a/Modules/structmodule.c Fri Apr 10 22:16:39 1998 +0000 +++ b/Modules/structmodule.c Fri Apr 10 22:27:42 1998 +0000 @@ -1008,7 +1008,7 @@ s = fmt; size = 0; while ((c = *s++) != '\0') { - if (isspace(c)) + if (isspace((int)c)) continue; if ('0' <= c && c <= '9') { num = c - '0'; @@ -1110,7 +1110,7 @@ res = restart = PyString_AsString(result); while ((c = *s++) != '\0') { - if (isspace(c)) + if (isspace((int)c)) continue; if ('0' <= c && c <= '9') { num = c - '0'; @@ -1242,7 +1242,7 @@ str = start; s = fmt; while ((c = *s++) != '\0') { - if (isspace(c)) + if (isspace((int)c)) continue; if ('0' <= c && c <= '9') { num = c - '0';
