aboutsummaryrefslogtreecommitdiff
path: root/sp/src/mathlib/mathlib_base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sp/src/mathlib/mathlib_base.cpp')
-rw-r--r--sp/src/mathlib/mathlib_base.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sp/src/mathlib/mathlib_base.cpp b/sp/src/mathlib/mathlib_base.cpp
index a403ccfa..15c51963 100644
--- a/sp/src/mathlib/mathlib_base.cpp
+++ b/sp/src/mathlib/mathlib_base.cpp
@@ -4244,7 +4244,7 @@ FPExceptionDisabler::FPExceptionDisabler()
// Retrieve the current state of the exception flags. This
// must be done before changing them. _MCW_EM is a bit
// mask representing all available exception masks.
- _controlfp_s(&mOldValues, _MCW_EM, _MCW_EM);
+ _controlfp_s(&mOldValues, 0, 0);
// Set all of the exception flags, which suppresses FP
// exceptions on the x87 and SSE units.
_controlfp_s(0, _MCW_EM, _MCW_EM);
@@ -4269,7 +4269,7 @@ FPExceptionEnabler::FPExceptionEnabler(unsigned int enableBits /*= _EM_OVERFLOW
// Retrieve the current state of the exception flags. This
// must be done before changing them. _MCW_EM is a bit
// mask representing all available exception masks.
- _controlfp_s(&mOldValues, _MCW_EM, _MCW_EM);
+ _controlfp_s(&mOldValues, 0, 0);
// Make sure no non-exception flags have been specified,
// to avoid accidental changing of rounding modes, etc.