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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user