]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #24974: Force fp-model precice in mpdecimal.c on Windows
authorZachary Ware <zachary.ware@gmail.com>
Thu, 3 Sep 2015 16:52:15 +0000 (11:52 -0500)
committerZachary Ware <zachary.ware@gmail.com>
Thu, 3 Sep 2015 16:52:15 +0000 (11:52 -0500)
As suggested by Steve Dower and approved by Stefan Krah.

Modules/_decimal/libmpdec/mpdecimal.c

index 21d222277c30cddffcc1ebca686fc991d035f83b..593f9f5e03a5b30dfb094310ca5f929e4ff75cae 100644 (file)
@@ -43,6 +43,7 @@
 #ifdef PPRO
   #if defined(_MSC_VER)
     #include <float.h>
+    #pragma float_control(precise, on)
     #pragma fenv_access(on)
   #elif !defined(__OpenBSD__) && !defined(__NetBSD__)
     /* C99 */