mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Use Py_ssize_t instead of long
This commit is contained in:
parent
c334626b8b
commit
d711d8ef82
|
@ -2985,7 +2985,7 @@ _getattr_bands(ImagingObject* self, void* closure)
|
|||
static PyObject*
|
||||
_getattr_id(ImagingObject* self, void* closure)
|
||||
{
|
||||
return PyInt_FromLong((long) self->image);
|
||||
return PyInt_FromSsize_t((Py_ssize_t) self->image);
|
||||
}
|
||||
|
||||
static PyObject*
|
||||
|
|
Loading…
Reference in New Issue
Block a user