summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2015-09-03 16:52:15 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2015-09-03 16:52:15 (GMT)
commitfda673d59f80a52589fde119468bac8a0561e67c (patch)
tree5f10f51ca561fbb109108c5659165fc2b4fe972b /Modules/_decimal
parentca30b02abecd481d92fce7ac347577069a3bc97a (diff)
downloadcpython-fda673d59f80a52589fde119468bac8a0561e67c.zip
cpython-fda673d59f80a52589fde119468bac8a0561e67c.tar.gz
cpython-fda673d59f80a52589fde119468bac8a0561e67c.tar.bz2
Issue #24974: Force fp-model precice in mpdecimal.c on Windows
As suggested by Steve Dower and approved by Stefan Krah.
Diffstat (limited to 'Modules/_decimal')
-rw-r--r--Modules/_decimal/libmpdec/mpdecimal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_decimal/libmpdec/mpdecimal.c b/Modules/_decimal/libmpdec/mpdecimal.c
index 21d2222..593f9f5 100644
--- 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 */