From 75487088486b7937664904cfb0abf0f8f9c56a26 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Sun, 20 Jun 2010 14:00:14 +0200 Subject: Silence index warnings in triangular unit test. Silence index warnings in FFT module. --- test/triangular.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/triangular.cpp') diff --git a/test/triangular.cpp b/test/triangular.cpp index 12452515e..302984eb7 100644 --- a/test/triangular.cpp +++ b/test/triangular.cpp @@ -139,6 +139,7 @@ template void triangular_square(const MatrixType& m) template void triangular_rect(const MatrixType& m) { + typedef const typename MatrixType::Index Index; typedef typename MatrixType::Scalar Scalar; typedef typename NumTraits::Real RealScalar; enum { Rows = MatrixType::RowsAtCompileTime, Cols = MatrixType::ColsAtCompileTime }; @@ -146,8 +147,8 @@ template void triangular_rect(const MatrixType& m) typedef Matrix RMatrixType; - int rows = m.rows(); - int cols = m.cols(); + Index rows = m.rows(); + Index cols = m.cols(); MatrixType m1 = MatrixType::Random(rows, cols), m2 = MatrixType::Random(rows, cols), -- cgit v1.2.3