diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-02-03 19:20:25 +0100 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-02-03 19:20:25 +0100 |
commit | 1a77334d5435f8edd6d7d756222207a8e3f268a6 (patch) | |
tree | dd1bee59b86fb434bc6b7194d1c05d60067da56d /test/nullary.cpp | |
parent | 05837be8fb373d69840c5a1b0a0be14a1c52639b (diff) |
Silenced type conversion warnings.
Diffstat (limited to 'test/nullary.cpp')
-rw-r--r-- | test/nullary.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/nullary.cpp b/test/nullary.cpp index 240365529..3adfc33fe 100644 --- a/test/nullary.cpp +++ b/test/nullary.cpp @@ -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); |