diff --git a/CoinUtils/test/CoinPackedVectorTest.cpp b/CoinUtils/test/CoinPackedVectorTest.cpp index 50fe7afab..24cea51df 100644 --- a/CoinUtils/test/CoinPackedVectorTest.cpp +++ b/CoinUtils/test/CoinPackedVectorTest.cpp @@ -685,7 +685,7 @@ CoinPackedVectorUnitTest() int inx2[ne2] = { 7, 4, 2, 1 }; double el2[ne2] = { 7., 4., 2., 1. }; -# ifdef COIN_C_FINITE +# ifdef COIN_C_FINITE double one = 1.0 ; double zero = 0.0 ; double infty = one/zero ; @@ -702,10 +702,12 @@ CoinPackedVectorUnitTest() rV.setConstant(ne1,inx1,0) ; r = v2 / v1; assert(r.isEquivalent(rV)) ; +# ifdef COIN_C_FINITE rV.setConstant(ne1,inx1,infty) ; r = v1 / v2; assert(r.isEquivalent(rV)) ; - +# endif + r.isEquivalent(rV) ; v2.setVector(ne2,inx2,el2);