mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-07 05:13:15 +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 *
|
static PyObject *
|
||||||
cms_transform_apply(CmsTransformObject *self, PyObject *args)
|
cms_transform_apply(CmsTransformObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
long idIn;
|
Py_ssize_t idIn;
|
||||||
long idOut;
|
Py_ssize_t idOut;
|
||||||
Imaging im;
|
Imaging im;
|
||||||
Imaging imOut;
|
Imaging imOut;
|
||||||
|
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args, "ll:apply", &idIn, &idOut))
|
if (!PyArg_ParseTuple(args, "nn:apply", &idIn, &idOut))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
im = (Imaging) idIn;
|
im = (Imaging) idIn;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user