mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 21:50:54 +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 */
|
/* Assume the buffer contains floats */
|
||||||
Py_buffer buffer;
|
Py_buffer buffer;
|
||||||
if (PyImaging_GetBuffer(data, &buffer) == 0) {
|
if (PyImaging_GetBuffer(data, &buffer) == 0) {
|
||||||
n = buffer.len / (2 * sizeof(float));
|
|
||||||
float *ptr = (float*) buffer.buf;
|
float *ptr = (float*) buffer.buf;
|
||||||
|
n = buffer.len / (2 * sizeof(float));
|
||||||
xy = alloc_array(n);
|
xy = alloc_array(n);
|
||||||
if (!xy)
|
if (!xy)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user