diff --git a/gtsam/linear/tests/testGaussianBayesNetUnordered.cpp b/gtsam/linear/tests/testGaussianBayesNetUnordered.cpp index 2ed33c81e..7d15f47e7 100644 --- a/gtsam/linear/tests/testGaussianBayesNetUnordered.cpp +++ b/gtsam/linear/tests/testGaussianBayesNetUnordered.cpp @@ -172,7 +172,7 @@ TEST(GaussianBayesNet, ComputeSteepestDescentPoint) { // Compute the gradient using dense matrices Matrix augmentedHessian = GaussianFactorGraph(gbn).augmentedHessian(); - LONGS_EQUAL(11, augmentedHessian.cols()); + LONGS_EQUAL(11, (long)augmentedHessian.cols()); Vector denseMatrixGradient = -augmentedHessian.col(10).segment(0,10); EXPECT(assert_equal(gradient, denseMatrixGradient, 1e-5)); diff --git a/gtsam/linear/tests/testGaussianBayesTreeUnordered.cpp b/gtsam/linear/tests/testGaussianBayesTreeUnordered.cpp index b085aa569..69977f3a4 100644 --- a/gtsam/linear/tests/testGaussianBayesTreeUnordered.cpp +++ b/gtsam/linear/tests/testGaussianBayesTreeUnordered.cpp @@ -254,7 +254,7 @@ TEST(GaussianBayesTree, ComputeSteepestDescentPointBT) { // Compute the gradient using dense matrices Matrix augmentedHessian = GaussianFactorGraph(bt).augmentedHessian(); - LONGS_EQUAL(11, augmentedHessian.cols()); + LONGS_EQUAL(11, (long)augmentedHessian.cols()); Vector denseMatrixGradient = -augmentedHessian.col(10).segment(0,10); EXPECT(assert_equal(gradient, denseMatrixGradient, 1e-5));