mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Use Py_ssize_t instead of long
This commit is contained in:
parent
e09ff61b81
commit
a0f1f6692c
|
@ -376,14 +376,14 @@ buildProofTransform(PyObject *self, PyObject *args)
|
|||
static PyObject *
|
||||
cms_transform_apply(CmsTransformObject *self, PyObject *args)
|
||||
{
|
||||
long idIn;
|
||||
long idOut;
|
||||
Py_ssize_t idIn;
|
||||
Py_ssize_t idOut;
|
||||
Imaging im;
|
||||
Imaging imOut;
|
||||
|
||||
int result;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "ll:apply", &idIn, &idOut))
|
||||
if (!PyArg_ParseTuple(args, "nn:apply", &idIn, &idOut))
|
||||
return NULL;
|
||||
|
||||
im = (Imaging) idIn;
|
||||
|
|
Loading…
Reference in New Issue
Block a user