fix warning in unittest

This commit is contained in:
Max Lyon
2019-12-13 16:05:35 +01:00
parent 58b0fd5f48
commit 1dd02a5532

View File

@@ -159,7 +159,7 @@ protected:
template <typename HandleT>
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<OpenMesh::EdgeHandle>()), mesh_.valence(fh));
for (auto fh : mesh_.faces())
EXPECT_EQ(fh.faces().sum(F<OpenMesh::FaceHandle>()), 3);
EXPECT_EQ(fh.faces().sum(F<OpenMesh::FaceHandle>()), 3u);
}