mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Make new gcc -Wall happy
This commit is contained in:
parent
1109fbca76
commit
730806d3d9
11 changed files with 45 additions and 23 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue