aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sparse_solver.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-08-04 16:12:44 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-08-04 16:12:44 +0200
commitdb0f5c9d90f76f21f231063d9cbd8ac7f274a011 (patch)
treee450cc548b1038e393dde31db2c79e95cb8089d6 /test/sparse_solver.h
parentb986c147cd666dfac716cb5d7179b2278ade2c61 (diff)
Fix conversion warning
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);