mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-25 00:34:14 +03:00
Merge pull request #134 from cgohlke/patch-4
Disable msvc10 compiler optimizations for topalette and tobilevel
This commit is contained in:
commit
a6792ff7e4
|
@ -790,6 +790,9 @@ frompalette(Imaging imOut, Imaging imIn, const char *mode)
|
|||
return imOut;
|
||||
}
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER == 1600)
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
static Imaging
|
||||
topalette(Imaging imOut, Imaging imIn, ImagingPalette inpalette, int dither)
|
||||
{
|
||||
|
@ -1022,7 +1025,9 @@ tobilevel(Imaging imOut, Imaging imIn, int dither)
|
|||
|
||||
return imOut;
|
||||
}
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER == 1600)
|
||||
#pragma optimize("", on)
|
||||
#endif
|
||||
|
||||
static Imaging
|
||||
convert(Imaging imOut, Imaging imIn, const char *mode,
|
||||
|
|
Loading…
Reference in New Issue
Block a user