Silenced type conversion warnings.

This commit is contained in:
Hauke Heibel
2010-02-03 19:20:25 +01:00
parent 05837be8fb
commit 1a77334d54
6 changed files with 23 additions and 15 deletions

View File

@@ -50,8 +50,8 @@ template<typename VectorType>
void testVectorType(const VectorType& base)
{
typedef typename ei_traits<VectorType>::Scalar Scalar;
Scalar low = ei_random(-500,500);
Scalar high = ei_random(-500,500);
Scalar low = ei_random<Scalar>(-500,500);
Scalar high = ei_random<Scalar>(-500,500);
if (low>high) std::swap(low,high);
const int size = base.size();
const Scalar step = (high-low)/(size-1);