Make new gcc -Wall happy

This commit is contained in:
Guido van Rossum 1998-04-10 22:27:42 +00:00
parent 1109fbca76
commit 730806d3d9
11 changed files with 45 additions and 23 deletions

View file

@ -1008,7 +1008,7 @@ calcsize(fmt, f)
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 @@ struct_pack(self, args)
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 @@ struct_unpack(self, args)
str = start;
s = fmt;
while ((c = *s++) != '\0') {
if (isspace(c))
if (isspace((int)c))
continue;
if ('0' <= c && c <= '9') {
num = c - '0';