mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-29 09:23:11 +03:00
Merge pull request #87 from cgohlke/patch-8
Use correct PyArg_ParseTuple format for Py_ssize_t
This commit is contained in:
commit
c534017876
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