From b1595b1fab2ad0c06a40c2bb09cb353d7b09c3d9 Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Mon, 5 Jun 2023 15:45:21 -0600 Subject: [PATCH] Hotfix muparser: Fix problem with IntelLLVM finite math --- bundled/muparser_v2_3_3/src/muParserTest.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/bundled/muparser_v2_3_3/src/muParserTest.cpp b/bundled/muparser_v2_3_3/src/muParserTest.cpp index eaff3aa8bf..8dc01caaea 100644 --- a/bundled/muparser_v2_3_3/src/muParserTest.cpp +++ b/bundled/muparser_v2_3_3/src/muParserTest.cpp @@ -1546,17 +1546,7 @@ namespace mu // The tests equations never result in infinity, if they do thats a bug. // reference: // http://sourceforge.net/projects/muparser/forums/forum/462843/topic/5037825 -#ifdef _MSC_VER -#pragma warning(push) -#pragma warning(disable:4127) -#endif - if (std::numeric_limits::has_infinity) -#ifdef _MSC_VER -#pragma warning(pop) -#endif - { - bCloseEnough &= (fabs(fVal[i]) != numeric_limits::infinity()); - } + bCloseEnough &= std::isfinite(fVal[i]); } iRet = ((bCloseEnough && a_fPass) || (!bCloseEnough && !a_fPass)) ? 0 : 1; -- 2.39.5