Fix conversion warning

This commit is contained in:
Gael Guennebaud 2015-08-04 16:12:44 +02:00
parent b986c147cd
commit db0f5c9d90

View File

@ -377,7 +377,7 @@ template<typename Solver> void check_sparse_square_solving(Solver& solver, int m
} }
// regression test for Bug 792 (structurally rank deficient matrices): // regression test for Bug 792 (structurally rank deficient matrices):
if(checkDeficient && size>1) { if(checkDeficient && size>1) {
Index col = internal::random<int>(0,size-1); Index col = internal::random<int>(0,int(size-1));
A.prune(prune_column(col)); A.prune(prune_column(col));
solver.compute(A); solver.compute(A);
VERIFY_IS_EQUAL(solver.info(), NumericalIssue); VERIFY_IS_EQUAL(solver.info(), NumericalIssue);