mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +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)
|
if (bits)
|
||||||
result = PyString_FromFormat("<Field type=%s, ofs=%d:%d, bits=%d>",
|
result = PyString_FromFormat("<Field type=%s, ofs=%d:%d, bits=%d>",
|
||||||
name, self->offset, size, bits);
|
name, (int)self->offset, size, bits);
|
||||||
else
|
else
|
||||||
result = PyString_FromFormat("<Field type=%s, ofs=%d, size=%d>",
|
result = PyString_FromFormat("<Field type=%s, ofs=%d, size=%d>",
|
||||||
name, self->offset, size);
|
name, (int)self->offset, size);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue