diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-07-26 09:40:19 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-07-26 09:40:19 +0200 |
commit | 757971e7eaca0a5ee635d531b865e741dd8a2ed5 (patch) | |
tree | 5b1da909a98e5e475688587348275f2f8284df47 /Eigen/src/SparseCore | |
parent | c9425492c8e050cc19002faaa5d0017d19c2ac76 (diff) |
bug #1258: fix compilation of Map<SparseMatrix>::coeffRef
Diffstat (limited to 'Eigen/src/SparseCore')
-rw-r--r-- | Eigen/src/SparseCore/SparseMap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/SparseCore/SparseMap.h b/Eigen/src/SparseCore/SparseMap.h index d76f3b68f..f99be3379 100644 --- a/Eigen/src/SparseCore/SparseMap.h +++ b/Eigen/src/SparseCore/SparseMap.h @@ -186,7 +186,7 @@ class SparseMapBase<Derived,WriteAccessors> Index end = Base::isCompressed() ? Base::m_outerIndex[outer+1] : start + Base::m_innerNonZeros[outer]; eigen_assert(end>=start && "you probably called coeffRef on a non finalized matrix"); eigen_assert(end>start && "coeffRef cannot be called on a zero coefficient"); - Index* r = std::lower_bound(&Base::m_innerIndices[start],&Base::m_innerIndices[end],inner); + StorageIndex* r = std::lower_bound(&Base::m_innerIndices[start],&Base::m_innerIndices[end],inner); const Index id = r - &Base::m_innerIndices[0]; eigen_assert((*r==inner) && (id<end) && "coeffRef cannot be called on a zero coefficient"); return const_cast<Scalar*>(Base::m_values)[id]; |