From f1679c7185471289afaf702a45e336849d20a81a Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Sun, 20 Jun 2010 17:37:56 +0200 Subject: Utilize Index in all unit tests. --- test/corners.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test/corners.cpp') diff --git a/test/corners.cpp b/test/corners.cpp index 3baea1b96..70d12fded 100644 --- a/test/corners.cpp +++ b/test/corners.cpp @@ -30,11 +30,12 @@ template void corners(const MatrixType& m) { - int rows = m.rows(); - int cols = m.cols(); + typedef typename MatrixType::Index Index; + Index rows = m.rows(); + Index cols = m.cols(); - int r = ei_random(1,rows); - int c = ei_random(1,cols); + Index r = ei_random(1,rows); + Index c = ei_random(1,cols); MatrixType matrix = MatrixType::Random(rows,cols); const MatrixType const_matrix = MatrixType::Random(rows,cols); -- cgit v1.2.3