From e6733c813a6e6f6c11acabe106770d887e02ac18 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Fri, 28 Aug 2015 23:15:56 -0700 Subject: [PATCH] Disable compiler optimizations for topalette and tobilevel functions for all msvc versions --- libImaging/Convert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libImaging/Convert.c b/libImaging/Convert.c index 3d9119c7f..757367604 100644 --- a/libImaging/Convert.c +++ b/libImaging/Convert.c @@ -998,7 +998,7 @@ frompalette(Imaging imOut, Imaging imIn, const char *mode) return imOut; } -#if defined(_MSC_VER) && (_MSC_VER == 1600) +#if defined(_MSC_VER) #pragma optimize("", off) #endif static Imaging @@ -1233,7 +1233,7 @@ tobilevel(Imaging imOut, Imaging imIn, int dither) return imOut; } -#if defined(_MSC_VER) && (_MSC_VER == 1600) +#if defined(_MSC_VER) #pragma optimize("", on) #endif