From af1247fbc160868d124f7f1047a62026eb785d68 Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Mon, 29 Mar 2021 09:25:39 -0700 Subject: Use Index type in loop over coefficients. Previously was `int`. Brought up by Kyle Snow (Polaris Geospatial Services) on the mailing list. --- Eigen/src/Core/PlainObjectBase.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Eigen') diff --git a/Eigen/src/Core/PlainObjectBase.h b/Eigen/src/Core/PlainObjectBase.h index 1447f2977..202ed7100 100644 --- a/Eigen/src/Core/PlainObjectBase.h +++ b/Eigen/src/Core/PlainObjectBase.h @@ -13,10 +13,10 @@ #if defined(EIGEN_INITIALIZE_MATRICES_BY_ZERO) # define EIGEN_INITIALIZE_COEFFS -# define EIGEN_INITIALIZE_COEFFS_IF_THAT_OPTION_IS_ENABLED for(int i=0;i::quiet_NaN(); +# define EIGEN_INITIALIZE_COEFFS_IF_THAT_OPTION_IS_ENABLED for(Index i=0;i::quiet_NaN(); #else # undef EIGEN_INITIALIZE_COEFFS # define EIGEN_INITIALIZE_COEFFS_IF_THAT_OPTION_IS_ENABLED @@ -540,7 +540,7 @@ class PlainObjectBase : public internal::dense_xpr_base::type m_storage.data()[1] = a1; m_storage.data()[2] = a2; m_storage.data()[3] = a3; - int i = 4; + Index i = 4; auto x = {(m_storage.data()[i++] = args, 0)...}; static_cast(x); } -- cgit v1.2.3