From f0c0a563657404af8aeb4162dcfce776a30a6dc6 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Sun, 11 Aug 2013 18:45:44 +0000 Subject: [PATCH] Fixed warnings --- gtsam/linear/tests/testGaussianBayesNetUnordered.cpp | 2 +- gtsam/linear/tests/testGaussianBayesTreeUnordered.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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));