aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/swap.cpp
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-20 15:52:34 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-06-20 15:52:34 +0200
commite402d34407226d9c2c5dfc14ef5d6dbf53ee3c8e (patch)
treebd16ef72ebb99ed858590b1dc2c16174e9a30dd3 /test/swap.cpp
parent75487088486b7937664904cfb0abf0f8f9c56a26 (diff)
More Index realted warnings.
Diffstat (limited to 'test/swap.cpp')
-rw-r--r--test/swap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/swap.cpp b/test/swap.cpp
index c11f0fec0..74543a662 100644
--- a/test/swap.cpp
+++ b/test/swap.cpp
@@ -43,8 +43,8 @@ template<typename MatrixType> void swap(const MatrixType& m)
typedef typename MatrixType::Scalar Scalar;
ei_assert((!ei_is_same_type<MatrixType,OtherMatrixType>::ret));
- int rows = m.rows();
- int cols = m.cols();
+ typename MatrixType::Index rows = m.rows();
+ typename MatrixType::Index cols = m.cols();
// construct 3 matrix guaranteed to be distinct
MatrixType m1 = MatrixType::Random(rows,cols);