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

@@ -434,7 +434,7 @@ struct partial_lu_impl
// update permutations and apply them to A_0
for(Index i=k; i<k+bs; ++i)
{
Index piv = (row_transpositions[i] += k);
Index piv = (row_transpositions[i] += internal::convert_index<PivIndex>(k));
A_0.row(i).swap(A_0.row(piv));
}