Silence indexing warning.
diff --git a/test/upperbidiagonalization.cpp b/test/upperbidiagonalization.cpp
index f64c1ae..ea8057d 100644
--- a/test/upperbidiagonalization.cpp
+++ b/test/upperbidiagonalization.cpp
@@ -27,8 +27,8 @@
 
 template<typename MatrixType> void upperbidiag(const MatrixType& m)
 {
-  int rows = m.rows();
-  int cols = m.cols();
+  const typename MatrixType::Index rows = m.rows();
+  const typename MatrixType::Index cols = m.cols();
 
   typedef typename MatrixType::Scalar Scalar;
   typedef Matrix<typename MatrixType::RealScalar, MatrixType::RowsAtCompileTime,  MatrixType::ColsAtCompileTime> RealMatrixType;