mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Cast an Py_ssize_t to int, to avoid a compiler warning.
This commit is contained in:
parent
6ea6e204a9
commit
ab906a562b
1 changed files with 2 additions and 2 deletions
|
@ -251,10 +251,10 @@ CField_repr(CFieldObject *self)
|
|||
|
||||
if (bits)
|
||||
result = PyString_FromFormat("<Field type=%s, ofs=%d:%d, bits=%d>",
|
||||
name, self->offset, size, bits);
|
||||
name, (int)self->offset, size, bits);
|
||||
else
|
||||
result = PyString_FromFormat("<Field type=%s, ofs=%d, size=%d>",
|
||||
name, self->offset, size);
|
||||
name, (int)self->offset, size);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue