[Python-checkins] cpython (3.5): Issue #24974: Force fp-model precice in mpdecimal.c on Windows

zach.ware python-checkins at python.org
Thu Sep 3 18:58:35 CEST 2015


https://hg.python.org/cpython/rev/863407e80370
changeset:   97631:863407e80370
branch:      3.5
parent:      97629:ef1f5aebe1a6
user:        Zachary Ware <zachary.ware at gmail.com>
date:        Thu Sep 03 11:52:15 2015 -0500
summary:
  Issue #24974: Force fp-model precice in mpdecimal.c on Windows

As suggested by Steve Dower and approved by Stefan Krah.

files:
  Modules/_decimal/libmpdec/mpdecimal.c |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Modules/_decimal/libmpdec/mpdecimal.c b/Modules/_decimal/libmpdec/mpdecimal.c
--- a/Modules/_decimal/libmpdec/mpdecimal.c
+++ b/Modules/_decimal/libmpdec/mpdecimal.c
@@ -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 */

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list