mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +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 */
|
||||
if (ystep > 0)
|
||||
for (y = 0; y < ysize; y++)
|
||||
im->image[y] = view.buf + offset + y * stride;
|
||||
im->image[y] = (char*)view.buf + offset + y * stride;
|
||||
else
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user