diff --git a/unit_tests/partitioner/bisection_to_partition.cpp b/unit_tests/partitioner/bisection_to_partition.cpp index 28cd8aac7..cbc5a3261 100644 --- a/unit_tests/partitioner/bisection_to_partition.cpp +++ b/unit_tests/partitioner/bisection_to_partition.cpp @@ -3,7 +3,7 @@ #include "partitioner/bisection_to_partition.hpp" -#define CHECK_SIZE_RANGE(range, ref) BOOST_CHECK_EQUAL(range.end() - range.begin(), ref) +#define CHECK_SIZE_RANGE(range, ref) BOOST_CHECK_EQUAL((range).end() - (range).begin(), ref) #define CHECK_EQUAL_RANGE(range, ref) \ do \ { \ diff --git a/unit_tests/partitioner/remove_unconnected.cpp b/unit_tests/partitioner/remove_unconnected.cpp index b6fd17d40..11d89b19a 100644 --- a/unit_tests/partitioner/remove_unconnected.cpp +++ b/unit_tests/partitioner/remove_unconnected.cpp @@ -5,7 +5,7 @@ #include "util/static_graph.hpp" -#define CHECK_SIZE_RANGE(range, ref) BOOST_CHECK_EQUAL(range.end() - range.begin(), ref) +#define CHECK_SIZE_RANGE(range, ref) BOOST_CHECK_EQUAL((range).end() - (range).begin(), ref) #define CHECK_EQUAL_RANGE(range, ref) \ do \ { \