diff --git a/src/Unittests/unittests_smart_ranges.cc b/src/Unittests/unittests_smart_ranges.cc index 72d0b7c2..91c98407 100644 --- a/src/Unittests/unittests_smart_ranges.cc +++ b/src/Unittests/unittests_smart_ranges.cc @@ -159,7 +159,7 @@ protected: template struct F { - int operator()(HandleT ) { return 1; } + unsigned int operator()(HandleT ) { return 1; } }; /* Test if smart ranges work @@ -189,7 +189,7 @@ TEST_F(OpenMeshSmartRanges, Sum) for (auto fh : mesh_.faces()) EXPECT_EQ(fh.edges().sum(F()), mesh_.valence(fh)); for (auto fh : mesh_.faces()) - EXPECT_EQ(fh.faces().sum(F()), 3); + EXPECT_EQ(fh.faces().sum(F()), 3u); }