From 19602bbb0bedde332ecef462dd76cf570a626495 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Thu, 3 Oct 2013 16:50:18 +0000 Subject: [PATCH] Fixed warning --- gtsam/linear/NoiseModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/linear/NoiseModel.cpp b/gtsam/linear/NoiseModel.cpp index 4c3986dea..e10428034 100644 --- a/gtsam/linear/NoiseModel.cpp +++ b/gtsam/linear/NoiseModel.cpp @@ -181,7 +181,7 @@ Diagonal::Diagonal(const Vector& sigmas, bool initialize_invsigmas): Diagonal::shared_ptr Diagonal::Variances(const Vector& variances, bool smart) { if (smart) { // check whether all the same entry - int j, n = variances.size(); + DenseIndex j, n = variances.size(); for (j = 1; j < n; j++) if (variances(j) != variances(0)) goto full; return Isotropic::Variance(n, variances(0), true);