aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/array_reverse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/array_reverse.cpp')
-rw-r--r--test/array_reverse.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/array_reverse.cpp b/test/array_reverse.cpp
index 144a0b088..1461900c3 100644
--- a/test/array_reverse.cpp
+++ b/test/array_reverse.cpp
@@ -106,8 +106,8 @@ template<typename MatrixType> void reverse(const MatrixType& m)
Scalar x = ei_random<Scalar>();
- int r = ei_random<int>(0, rows-1),
- c = ei_random<int>(0, cols-1);
+ Index r = ei_random<Index>(0, rows-1),
+ c = ei_random<Index>(0, cols-1);
m1.reverse()(r, c) = x;
VERIFY_IS_APPROX(x, m1(rows - 1 - r, cols - 1 - c));