eliminate warning messages during complication

release/4.3a0
Yong-Dian Jian 2012-02-28 23:46:17 +00:00
parent 0fb0a11d36
commit f4087ce0c6
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ namespace gtsam {
/* ************************************************************************* */ /* ************************************************************************* */
// take a step, return true if converged // take a step, return true if converged
bool step(const S& Ab, V& x) { bool step(const S& Ab, V& x) {
if ((++k) >= parameters_.maxIterations()) return true; if ((++k) >= ((int)parameters_.maxIterations())) return true;
//----------------------------------> //---------------------------------->
double alpha = takeOptimalStep(x); double alpha = takeOptimalStep(x);