From afed559e4f179e719da36f732012f7545d6356fe Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Tue, 25 Jun 2019 17:18:37 -0700 Subject: [PATCH] Fix msvc9 compile error --- src/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path.c b/src/path.c index 3eaacb33b..5f0541b0b 100644 --- a/src/path.c +++ b/src/path.c @@ -133,8 +133,8 @@ PyPath_Flatten(PyObject* data, double **pxy) /* Assume the buffer contains floats */ Py_buffer buffer; if (PyImaging_GetBuffer(data, &buffer) == 0) { - n = buffer.len / (2 * sizeof(float)); float *ptr = (float*) buffer.buf; + n = buffer.len / (2 * sizeof(float)); xy = alloc_array(n); if (!xy) return -1;