aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/sparse_extra.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unsupported/test/sparse_extra.cpp')
-rw-r--r--unsupported/test/sparse_extra.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/unsupported/test/sparse_extra.cpp b/unsupported/test/sparse_extra.cpp
index fa6dc50f5..6cf1f50c4 100644
--- a/unsupported/test/sparse_extra.cpp
+++ b/unsupported/test/sparse_extra.cpp
@@ -61,8 +61,9 @@ bool test_random_setter(DynamicSparseMatrix<T>& sm, const DenseType& ref, const
template<typename SparseMatrixType> void sparse_extra(const SparseMatrixType& ref)
{
- const int rows = ref.rows();
- const int cols = ref.cols();
+ typedef typename SparseMatrixType::Index Index;
+ const Index rows = ref.rows();
+ const Index cols = ref.cols();
typedef typename SparseMatrixType::Scalar Scalar;
enum { Flags = SparseMatrixType::Flags };