From 4d9542dc702565e6034d3ddca6c3f1bda2c203d7 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Mon, 2 Apr 2012 20:04:43 +0000 Subject: [PATCH] Fixed compile warning --- gtsam/nonlinear/ISAM2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtsam/nonlinear/ISAM2.cpp b/gtsam/nonlinear/ISAM2.cpp index a59bc97dc..228b6e491 100644 --- a/gtsam/nonlinear/ISAM2.cpp +++ b/gtsam/nonlinear/ISAM2.cpp @@ -238,8 +238,9 @@ boost::shared_ptr > ISAM2::recalculate( } } } else { - if(theta_.size() > newKeys.size()) // Only if some variables are unconstrained + if(theta_.size() > newKeys.size()) { // Only if some variables are unconstrained BOOST_FOREACH(Index var, newKeys) { cmember[var] = 1; } + } } Permutation::shared_ptr colamd(inference::PermutationCOLAMD_(variableIndex_, cmember)); Permutation::shared_ptr colamdInverse(colamd->inverse());