fix for valgrind invalid read warning

release/4.3a0
Nghia Ho 2018-12-13 17:03:31 -08:00
parent 60a6fae171
commit ff05eee0ca
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ bool ISAM2Clique::valuesChanged(const KeySet& replaced,
double threshold) const {
auto frontals = conditional_->frontals();
if (replaced.exists(frontals.front())) return true;
auto diff = originalValues - delta.vector(frontals);
Vector diff = originalValues - delta.vector(frontals);
return diff.lpNorm<Eigen::Infinity>() >= threshold;
}