mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +03:00
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:
commit
05666d2ac2
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user