mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-30 10:43:16 +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*
|
static PyObject*
|
||||||
_getattr_id(ImagingObject* self, void* closure)
|
_getattr_id(ImagingObject* self, void* closure)
|
||||||
{
|
{
|
||||||
return PyInt_FromLong((long) self->image);
|
return PyInt_FromSsize_t((Py_ssize_t) self->image);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject*
|
static PyObject*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user