Commit d6a49b5a authored by Pietro Incardona's avatar Pietro Incardona

Fixing numeric test

parent d37c21c3
......@@ -70,7 +70,7 @@ template <typename rtype, typename vector, unsigned int A, unsigned int B, unsig
{
auto key = it.get();
rtype base1 = vd.template getPos(key) + p;
rtype base1 = rtype(vd.template getPos(key)) + p;
rtype base2 = vd.template getProp<A>(key);
ret &= base1 == base2;
......@@ -92,7 +92,7 @@ template <typename rtype, typename vector, unsigned int A, unsigned int B, unsig
{
auto key = it.get();
rtype base1 = vd.template getPos(key) - p;
rtype base1 = rtype(vd.template getPos(key)) - p;
rtype base2 = vd.template getProp<A>(key);
ret &= base1 == base2;
......@@ -114,7 +114,7 @@ template <typename rtype, typename vector, unsigned int A, unsigned int B, unsig
{
auto key = it.get();
rtype base1 = -(vd.template getPos(key) - p);
rtype base1 = -(rtype(vd.template getPos(key)) - p);
rtype base2 = vd.template getProp<A>(key);
ret &= base1 == base2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment