From 8fb8d2ec3a7637edf99dd7c6ebff75ed4c8a04e8 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Mon, 15 Dec 2014 14:44:12 -0800 Subject: [PATCH] Fix msvc compiler error --- libImaging/BoxBlur.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libImaging/BoxBlur.c b/libImaging/BoxBlur.c index 8b6ebcf7e..0fe3b7c35 100644 --- a/libImaging/BoxBlur.c +++ b/libImaging/BoxBlur.c @@ -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;