diff options
Diffstat (limited to 'Modules/structmodule.c')
-rw-r--r-- | Modules/structmodule.c | 6 |
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'; |