From f892731b3f8a6d621dee57993a5d4438515e3965 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 29 Jun 2018 15:03:45 -0500 Subject: [PATCH] Fix epicsCalcTest for gcc 7.1.0 on minGW Another case where the compile-time evaluation returns +1 but at run-time isnan() returns -1. --- src/libCom/test/epicsCalcTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libCom/test/epicsCalcTest.cpp b/src/libCom/test/epicsCalcTest.cpp index 1ebc0c578..2492c95ba 100644 --- a/src/libCom/test/epicsCalcTest.cpp +++ b/src/libCom/test/epicsCalcTest.cpp @@ -391,7 +391,7 @@ MAIN(epicsCalcTest) testExpr(isnan(0.)); testExpr(isnan(Inf)); testExpr(isnan(-Inf)); - testExpr(isnan(NaN)); + testExpr(!!isnan(NaN)); // As above testCalc("isnan(0,1,2)", 0); testCalc("isnan(0,1,NaN)", 1); testCalc("isnan(0,NaN,2)", 1);