mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Fix msvc9 compile error
This commit is contained in:
parent
c34cefb576
commit
afed559e4f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user