aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/redux.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/redux.cpp')
-rw-r--r--test/redux.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/redux.cpp b/test/redux.cpp
index 385174831..bcc435d0e 100644
--- a/test/redux.cpp
+++ b/test/redux.cpp
@@ -68,9 +68,10 @@ template<typename MatrixType> void matrixRedux(const MatrixType& m)
template<typename VectorType> void vectorRedux(const VectorType& w)
{
+ typedef typename VectorType::Index Index;
typedef typename VectorType::Scalar Scalar;
typedef typename NumTraits<Scalar>::Real RealScalar;
- int size = w.size();
+ Index size = w.size();
VectorType v = VectorType::Random(size);
for(int i = 1; i < size; i++)