aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sparse_solver.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/sparse_solver.h')
-rw-r--r--test/sparse_solver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sparse_solver.h b/test/sparse_solver.h
index 90362ca0f..a0254ff1c 100644
--- a/test/sparse_solver.h
+++ b/test/sparse_solver.h
@@ -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):
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));
solver.compute(A);
VERIFY_IS_EQUAL(solver.info(), NumericalIssue);