mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46:16 +03:00
Merge pull request #3067 from uploadcare/fix-_i2f
Fix _i2f compilation on some GCC versions
This commit is contained in:
commit
ca850a6334
|
@ -37,7 +37,7 @@
|
|||
! defined(__clang__) && defined(GCC_VERSION) && (GCC_VERSION < 40900)
|
||||
static float __attribute__((always_inline)) inline _i2f(int v) {
|
||||
float x;
|
||||
__asm__("xorps %0, %0; cvtsi2ss %1, %0" : "=X"(x) : "r"(v) );
|
||||
__asm__("xorps %0, %0; cvtsi2ss %1, %0" : "=x"(x) : "r"(v) );
|
||||
return x;
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue
Block a user