diff --git a/src/libCom/test/epicsCalcTest.cpp b/src/libCom/test/epicsCalcTest.cpp index 77a77079f..ddb78be4f 100644 --- a/src/libCom/test/epicsCalcTest.cpp +++ b/src/libCom/test/epicsCalcTest.cpp @@ -281,7 +281,7 @@ MAIN(epicsCalcTest) testCalc("finite(-Inf,1,2)", 0); testExpr(isinf(0)); testExpr(isinf(Inf)); - testExpr(isinf(-Inf)); + testExpr(!!isinf(-Inf)); // Some GCCs return -1/0/+1 rather than 0/+1 testExpr(isinf(NaN)); testExpr(isnan(0)); testExpr(isnan(Inf));