diff options
author | Gael Guennebaud <g.gael@free.fr> | 2014-07-08 16:47:11 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2014-07-08 16:47:11 +0200 |
commit | b47ef1431f2e4d1218253df179b593cc5c269aa7 (patch) | |
tree | 37f8ebcfa5fc49a376f2eb3a13e19805274797e3 /Eigen/src/Core/Visitor.h | |
parent | e25e6748521818fb13270f7351df8538eb54a056 (diff) |
Fix many long to int implicit conversions
Diffstat (limited to 'Eigen/src/Core/Visitor.h')
-rw-r--r-- | Eigen/src/Core/Visitor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/Visitor.h b/Eigen/src/Core/Visitor.h index 64867b7a2..6f4b9ec35 100644 --- a/Eigen/src/Core/Visitor.h +++ b/Eigen/src/Core/Visitor.h @@ -194,7 +194,7 @@ DenseBase<Derived>::minCoeff(IndexType* index) const EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived) internal::min_coeff_visitor<Derived> minVisitor; this->visit(minVisitor); - *index = (RowsAtCompileTime==1) ? minVisitor.col : minVisitor.row; + *index = IndexType((RowsAtCompileTime==1) ? minVisitor.col : minVisitor.row); return minVisitor.res; } |