Skip to content

Commit fda673d

Browse files
committed
Issue python#24974: Force fp-model precice in mpdecimal.c on Windows
As suggested by Steve Dower and approved by Stefan Krah.
1 parent ca30b02 commit fda673d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Modules/_decimal/libmpdec/mpdecimal.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#ifdef PPRO
4444
#if defined(_MSC_VER)
4545
#include <float.h>
46+
#pragma float_control(precise, on)
4647
#pragma fenv_access(on)
4748
#elif !defined(__OpenBSD__) && !defined(__NetBSD__)
4849
/* C99 */

0 commit comments

Comments
 (0)