aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--test/visitor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/visitor.cpp b/test/visitor.cpp
index b771be73d..39a5d6b5f 100644
--- a/test/visitor.cpp
+++ b/test/visitor.cpp
@@ -72,8 +72,8 @@ template<typename VectorType> void vectorVisitor(const VectorType& w)
while(v(i) == v(i2)) // yes, ==
v(i) = internal::random<Scalar>();
- Scalar minc = Scalar(1000), maxc = Scalar(-1000);
- Index minidx=0,maxidx=0;
+ Scalar minc = v(0), maxc = v(0);
+ Index minidx=0, maxidx=0;
for(Index i = 0; i < size; i++)
{
if(v(i) < minc)