Skip to content
Snippets Groups Projects
Commit d6a49b5a authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing numeric test

parent d37c21c3
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment