Skip to content

Commit

Permalink
Fix epicsCalcTest for gcc 7.1.0 on minGW
Browse files Browse the repository at this point in the history
Another case where the compile-time evaluation returns +1
but at run-time isnan() returns -1.
  • Loading branch information
anjohnson committed Jun 29, 2018
1 parent 8144d2e commit f892731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libCom/test/epicsCalcTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f892731

Please sign in to comment.