diff options
author | Gael Guennebaud <g.gael@free.fr> | 2013-02-25 01:12:07 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2013-02-25 01:12:07 +0100 |
commit | 80d2a654652d87688448a9feb54a77466024677a (patch) | |
tree | 4c72cfe6452174167805e6360c46b95fe0e65151 /test/visitor.cpp | |
parent | 04367447ac295d9818713f54b0a539efef7f0caa (diff) |
Fix visitor unit test.
Diffstat (limited to 'test/visitor.cpp')
-rw-r--r-- | test/visitor.cpp | 4 |
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) |