aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/linearstructure.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/linearstructure.cpp')
-rw-r--r--test/linearstructure.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/linearstructure.cpp b/test/linearstructure.cpp
index 1d86af337..a0b8982dd 100644
--- a/test/linearstructure.cpp
+++ b/test/linearstructure.cpp
@@ -45,8 +45,8 @@ template<typename MatrixType> void linearStructure(const MatrixType& m)
Scalar s1 = ei_random<Scalar>();
while (ei_abs(s1)<1e-3) s1 = 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);
VERIFY_IS_APPROX(-(-m1), m1);
VERIFY_IS_APPROX(m1+m1, 2*m1);