Don't use fmod(), broken on vxWorks.

Use long rather than int for integer calculations.
This commit is contained in:
Andrew Johnson
2008-05-08 16:15:50 +00:00
parent e74e839ccd
commit 2a34e2e464
2 changed files with 20 additions and 18 deletions

View File

@@ -200,7 +200,7 @@ MAIN(epicsCalcTest)
Inf /= NaN;
NaN /= NaN;
testPlan(532);
testPlan(533);
/* LITERAL_OPERAND elements */
testExpr(0);
@@ -467,6 +467,7 @@ MAIN(epicsCalcTest)
testExpr(7 % 4);
testExpr(-7 % 4);
testExpr(63 % 16 % 6)
testCalc("1 % 0", NaN);
testExpr(7 & 4);