Use Py_ssize_t instead of long

This commit is contained in:
Christoph Gohlke 2013-02-13 18:47:32 -08:00
parent c334626b8b
commit d711d8ef82

View File

@ -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*