diff --git a/src/Operators/Vector/vector_dist_operators_unit_tests.hpp b/src/Operators/Vector/vector_dist_operators_unit_tests.hpp index 7a0e9040d1c711ac05227153001acfcc37757921..0f3edd2c6a7ecada4b8e3e471adf54c8fd8f275e 100644 --- a/src/Operators/Vector/vector_dist_operators_unit_tests.hpp +++ b/src/Operators/Vector/vector_dist_operators_unit_tests.hpp @@ -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;