Merge pull request #1402 from cgohlke/patch-1

Disable compiler optimizations for topalette and tobilevel functions for all msvc versions
This commit is contained in:
wiredfool 2015-09-09 16:58:29 +01:00
commit 05666d2ac2

View File

@ -998,7 +998,7 @@ frompalette(Imaging imOut, Imaging imIn, const char *mode)
return imOut; return imOut;
} }
#if defined(_MSC_VER) && (_MSC_VER == 1600) #if defined(_MSC_VER)
#pragma optimize("", off) #pragma optimize("", off)
#endif #endif
static Imaging static Imaging
@ -1233,7 +1233,7 @@ tobilevel(Imaging imOut, Imaging imIn, int dither)
return imOut; return imOut;
} }
#if defined(_MSC_VER) && (_MSC_VER == 1600) #if defined(_MSC_VER)
#pragma optimize("", on) #pragma optimize("", on)
#endif #endif