Fix visitor unit test.

This commit is contained in:
Gael Guennebaud 2013-02-25 01:12:07 +01:00
parent 04367447ac
commit 80d2a65465

View File

@ -72,7 +72,7 @@ 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);
Scalar minc = v(0), maxc = v(0);
Index minidx=0, maxidx=0;
for(Index i = 0; i < size; i++)
{