Fixed compile warning

release/4.3a0
Stephen Williams 2012-04-02 20:04:43 +00:00
parent 204b36fc05
commit 4d9542dc70
1 changed files with 2 additions and 1 deletions

View File

@ -238,8 +238,9 @@ boost::shared_ptr<FastSet<Index> > ISAM2::recalculate(
} }
} }
} else { } 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; } BOOST_FOREACH(Index var, newKeys) { cmember[var] = 1; }
}
} }
Permutation::shared_ptr colamd(inference::PermutationCOLAMD_(variableIndex_, cmember)); Permutation::shared_ptr colamd(inference::PermutationCOLAMD_(variableIndex_, cmember));
Permutation::shared_ptr colamdInverse(colamd->inverse()); Permutation::shared_ptr colamdInverse(colamd->inverse());