diff --git a/src/path.c b/src/path.c index eb1e065f9..3eaacb33b 100644 --- a/src/path.c +++ b/src/path.c @@ -133,7 +133,7 @@ PyPath_Flatten(PyObject* data, double **pxy) /* Assume the buffer contains floats */ Py_buffer buffer; if (PyImaging_GetBuffer(data, &buffer) == 0) { - int n = buffer.len / (2 * sizeof(float)); + n = buffer.len / (2 * sizeof(float)); float *ptr = (float*) buffer.buf; xy = alloc_array(n); if (!xy)