From 9f82f025dc4c03a40259cae0e4d557c5dae10ac9 Mon Sep 17 00:00:00 2001 From: Bryant Mairs Date: Wed, 9 Jan 2013 21:30:33 -0800 Subject: [PATCH] Modified map.c to fix some MSVC10 compilation errors. --- map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/map.c b/map.c index c9ad10914..5bd601ba3 100644 --- a/map.c +++ b/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;