Merge pull request #87 from cgohlke/patch-8

Use correct PyArg_ParseTuple format for Py_ssize_t
This commit is contained in:
Alex Clark ☺ 2013-03-08 12:45:02 -08:00
commit c534017876

2
path.c
View File

@ -246,7 +246,7 @@ PyPath_Create(PyObject* self, PyObject* args)
Py_ssize_t count;
double *xy;
if (PyArg_ParseTuple(args, "i:Path", &count)) {
if (PyArg_ParseTuple(args, "n:Path", &count)) {
/* number of vertices */
xy = alloc_array(count);