aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/nullary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/nullary.cpp')
-rw-r--r--test/nullary.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/nullary.cpp b/test/nullary.cpp
index 6e91ddd52..d46349991 100644
--- a/test/nullary.cpp
+++ b/test/nullary.cpp
@@ -97,8 +97,9 @@ void testVectorType(const VectorType& base)
template<typename MatrixType>
void testMatrixType(const MatrixType& m)
{
- const int rows = m.rows();
- const int cols = m.cols();
+ typedef typename MatrixType::Index Index;
+ const Index rows = m.rows();
+ const Index cols = m.cols();
MatrixType A;
A.setIdentity(rows, cols);