Merge pull request #100 from cgohlke/patch-12

Fix compile error with msvc
This commit is contained in:
Alex Clark ☺ 2013-03-13 17:36:21 -07:00
commit b83b162dcb

View File

@ -40,8 +40,8 @@ ImagingFill(Imaging im, const void* colour)
memset(im->image[y], 0, im->linesize);
}
} else {
ImagingSectionEnter(&cookie);
INT32 c = 0L;
ImagingSectionEnter(&cookie);
memcpy(&c, colour, im->pixelsize);
if (im->image32 && c != 0L) {
for (y = 0; y < im->ysize; y++)