From aa6c516ec17fb44dff85b1abf3a1b05d58d3bc01 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 16 Feb 2015 13:19:05 +0100 Subject: Fix many long to int conversion warnings: - fix usage of Index (API) versus StorageIndex (when multiple indexes are stored) - use StorageIndex(val) when the input has already been check - use internal::convert_index(val) when val is potentially unsafe (directly comes from user input) --- test/spqr_support.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/spqr_support.cpp') diff --git a/test/spqr_support.cpp b/test/spqr_support.cpp index 901c42c40..baa25a0c2 100644 --- a/test/spqr_support.cpp +++ b/test/spqr_support.cpp @@ -37,7 +37,7 @@ template void test_spqr_scalar() SPQR solver; generate_sparse_rectangular_problem(A,dA); - int m = A.rows(); + Index m = A.rows(); b = DenseVector::Random(m); solver.compute(A); if (solver.info() != Success) -- cgit v1.2.3