From f4087ce0c69455bf689e62242b4902918c29b7b1 Mon Sep 17 00:00:00 2001 From: Yong-Dian Jian Date: Tue, 28 Feb 2012 23:46:17 +0000 Subject: [PATCH] eliminate warning messages during complication --- gtsam/linear/iterative-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/linear/iterative-inl.h b/gtsam/linear/iterative-inl.h index 59fd824bf..02048d3df 100644 --- a/gtsam/linear/iterative-inl.h +++ b/gtsam/linear/iterative-inl.h @@ -82,7 +82,7 @@ namespace gtsam { /* ************************************************************************* */ // take a step, return true if converged bool step(const S& Ab, V& x) { - if ((++k) >= parameters_.maxIterations()) return true; + if ((++k) >= ((int)parameters_.maxIterations())) return true; //----------------------------------> double alpha = takeOptimalStep(x);