From 9f5529fb10552af9534626a8189bb521139f216f Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Thu, 18 Feb 2021 09:57:54 -0500 Subject: [PATCH] BUG: Disable Emscripten exception for floating point exceptions We need this to be a no-op. --- Modules/Core/Common/src/itkFloatingPointExceptions_unix.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Core/Common/src/itkFloatingPointExceptions_unix.cxx b/Modules/Core/Common/src/itkFloatingPointExceptions_unix.cxx index 2df1645db81..4304f444b0e 100644 --- a/Modules/Core/Common/src/itkFloatingPointExceptions_unix.cxx +++ b/Modules/Core/Common/src/itkFloatingPointExceptions_unix.cxx @@ -136,7 +136,7 @@ void FloatingPointExceptions::Enable() { itkInitGlobalsMacro(PimplGlobals); -#if defined(ITK_HAS_FPE_CAPABILITY) && !defined(__EMSCRIPTEN__) +#if defined(ITK_HAS_FPE_CAPABILITY) itk_feenableexcept(FE_DIVBYZERO); itk_feenableexcept(FE_INVALID); # if defined(ITK_FPE_USE_SIGNAL_HANDLER) @@ -158,7 +158,7 @@ void FloatingPointExceptions::Disable() { itkInitGlobalsMacro(PimplGlobals); -#if defined(ITK_HAS_FPE_CAPABILITY) && !defined(__EMSCRIPTEN__) +#if defined(ITK_HAS_FPE_CAPABILITY) itk_fedisableexcept(FE_DIVBYZERO); itk_fedisableexcept(FE_INVALID); FloatingPointExceptions::m_PimplGlobals->m_Enabled = false;