aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/nullary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/nullary.cpp')
-rw-r--r--test/nullary.cpp4
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);