summaryrefslogtreecommitdiffstats
path: root/Modules/structmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-10 22:27:42 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-10 22:27:42 (GMT)
commit730806d3d9bd8c54466e4a864b2b1f94df4413d2 (patch)
tree95ef041ad6e66f6cfbee3b6f84de6542c2cd36a7 /Modules/structmodule.c
parent1109fbca76d08bb2f11f2899580d2ab7dbe796fa (diff)
downloadcpython-730806d3d9bd8c54466e4a864b2b1f94df4413d2.zip
cpython-730806d3d9bd8c54466e4a864b2b1f94df4413d2.tar.gz
cpython-730806d3d9bd8c54466e4a864b2b1f94df4413d2.tar.bz2
Make new gcc -Wall happy
Diffstat (limited to 'Modules/structmodule.c')
-rw-r--r--Modules/structmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/structmodule.c b/Modules/structmodule.c
index 065ec6f..0cf996f 100644
--- a/Modules/structmodule.c
+++ b/Modules/structmodule.c
@@ -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';