Fix/handle some int-to-long conversions.

This commit is contained in:
Gael Guennebaud
2016-05-26 17:35:53 +02:00
parent 00c29c2cae
commit bebc5a2147
3 changed files with 4 additions and 4 deletions

View File

@@ -1080,7 +1080,7 @@ EIGEN_DONT_INLINE SparseMatrix<Scalar,_Options,_Index>& SparseMatrix<Scalar,_Opt
IndexVector positions(dest.outerSize());
for (Index j=0; j<dest.outerSize(); ++j)
{
Index tmp = dest.m_outerIndex[j];
StorageIndex tmp = dest.m_outerIndex[j];
dest.m_outerIndex[j] = count;
positions[j] = count;
count += tmp;