mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 05:04:24 +03:00
Use Py_ssize_t instead of long
This commit is contained in:
parent
2feb481ca2
commit
803022d93f
|
@ -174,8 +174,8 @@ _unop(PyObject* self, PyObject* args)
|
||||||
Imaging im1;
|
Imaging im1;
|
||||||
void (*unop)(Imaging, Imaging);
|
void (*unop)(Imaging, Imaging);
|
||||||
|
|
||||||
long op, i0, i1;
|
Py_ssize_t op, i0, i1;
|
||||||
if (!PyArg_ParseTuple(args, "lll", &op, &i0, &i1))
|
if (!PyArg_ParseTuple(args, "nnn", &op, &i0, &i1))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
out = (Imaging) i0;
|
out = (Imaging) i0;
|
||||||
|
@ -197,8 +197,8 @@ _binop(PyObject* self, PyObject* args)
|
||||||
Imaging im2;
|
Imaging im2;
|
||||||
void (*binop)(Imaging, Imaging, Imaging);
|
void (*binop)(Imaging, Imaging, Imaging);
|
||||||
|
|
||||||
long op, i0, i1, i2;
|
Py_ssize_t op, i0, i1, i2;
|
||||||
if (!PyArg_ParseTuple(args, "llll", &op, &i0, &i1, &i2))
|
if (!PyArg_ParseTuple(args, "nnnn", &op, &i0, &i1, &i2))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
out = (Imaging) i0;
|
out = (Imaging) i0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user