mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-01 18:33:05 +03:00
Use correct PyArg_ParseTuple format for Py_ssize_t
This commit is contained in:
parent
bb74487e96
commit
e5a7b63151
2
path.c
2
path.c
|
@ -246,7 +246,7 @@ PyPath_Create(PyObject* self, PyObject* args)
|
||||||
Py_ssize_t count;
|
Py_ssize_t count;
|
||||||
double *xy;
|
double *xy;
|
||||||
|
|
||||||
if (PyArg_ParseTuple(args, "i:Path", &count)) {
|
if (PyArg_ParseTuple(args, "n:Path", &count)) {
|
||||||
|
|
||||||
/* number of vertices */
|
/* number of vertices */
|
||||||
xy = alloc_array(count);
|
xy = alloc_array(count);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user