Fix msvc compiler error

This commit is contained in:
Christoph Gohlke 2014-12-15 14:44:12 -08:00
parent 9581da4daa
commit 8fb8d2ec3a

View File

@ -237,6 +237,7 @@ Imaging
ImagingBoxBlur(Imaging imOut, Imaging imIn, float radius, int n)
{
int i;
Imaging imTransposed;
if (n < 1) {
return ImagingError_ValueError(
@ -262,7 +263,7 @@ ImagingBoxBlur(Imaging imOut, Imaging imIn, float radius, int n)
strcmp(imIn->mode, "LA") == 0))
return ImagingError_ModeError();
Imaging imTransposed = ImagingNew(imIn->mode, imIn->ysize, imIn->xsize);
imTransposed = ImagingNew(imIn->mode, imIn->ysize, imIn->xsize);
if (!imTransposed)
return NULL;