mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Modified map.c to fix some MSVC10 compilation errors.
This commit is contained in:
parent
e49cba9b32
commit
9f82f025dc
4
map.c
4
map.c
|
@ -378,10 +378,10 @@ PyImaging_MapBuffer(PyObject* self, PyObject* args)
|
||||||
/* setup file pointers */
|
/* setup file pointers */
|
||||||
if (ystep > 0)
|
if (ystep > 0)
|
||||||
for (y = 0; y < ysize; y++)
|
for (y = 0; y < ysize; y++)
|
||||||
im->image[y] = view.buf + offset + y * stride;
|
im->image[y] = (char*)view.buf + offset + y * stride;
|
||||||
else
|
else
|
||||||
for (y = 0; y < ysize; y++)
|
for (y = 0; y < ysize; y++)
|
||||||
im->image[ysize-y-1] = view.buf + offset + y * stride;
|
im->image[ysize-y-1] = (char*)view.buf + offset + y * stride;
|
||||||
|
|
||||||
im->destroy = mapping_destroy_buffer;
|
im->destroy = mapping_destroy_buffer;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user