From 730806d3d9bd8c54466e4a864b2b1f94df4413d2 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 10 Apr 1998 22:27:42 +0000 Subject: Make new gcc -Wall happy --- Modules/structmodule.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Modules/structmodule.c') diff --git a/Modules/structmodule.c b/Modules/structmodule.c index 065ec6f5ad..0cf996fb99 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'; -- cgit v1.2.1