diff --git a/tests/testGraph.cpp b/tests/testGraph.cpp index 7a90cf1b2..ecd21b659 100644 --- a/tests/testGraph.cpp +++ b/tests/testGraph.cpp @@ -48,7 +48,7 @@ TEST ( Ordering, predecessorMap2Keys ) { expected += 4,5,3,2,1; list actual = predecessorMap2Keys(p_map); - LONGS_EQUAL(expected.size(), actual.size()); + LONGS_EQUAL((long)expected.size(), (long)actual.size()); list::const_iterator it1 = expected.begin(); list::const_iterator it2 = actual.begin(); diff --git a/tests/testMarginals.cpp b/tests/testMarginals.cpp index 91cca41e3..9e0e76ec7 100644 --- a/tests/testMarginals.cpp +++ b/tests/testMarginals.cpp @@ -229,12 +229,12 @@ TEST(Marginals, order) { FastVector keys(fg.keys()); JointMarginal joint = marginals.jointMarginalCovariance(keys); - LONGS_EQUAL(3, joint(0,0).rows()); - LONGS_EQUAL(3, joint(1,1).rows()); - LONGS_EQUAL(3, joint(2,2).rows()); - LONGS_EQUAL(3, joint(3,3).rows()); - LONGS_EQUAL(2, joint(100,100).rows()); - LONGS_EQUAL(2, joint(101,101).rows()); + LONGS_EQUAL(3, (long)joint(0,0).rows()); + LONGS_EQUAL(3, (long)joint(1,1).rows()); + LONGS_EQUAL(3, (long)joint(2,2).rows()); + LONGS_EQUAL(3, (long)joint(3,3).rows()); + LONGS_EQUAL(2, (long)joint(100,100).rows()); + LONGS_EQUAL(2, (long)joint(101,101).rows()); } /* ************************************************************************* */