From 9ddd4662ea1250354b5ca2e9978e9e5e63fa8430 Mon Sep 17 00:00:00 2001 From: Martin Marinov Date: Thu, 7 May 2020 03:08:25 +0100 Subject: [PATCH] Fix a MSVC warning in TriConnectivity --- src/OpenMesh/Core/Mesh/TriConnectivity.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenMesh/Core/Mesh/TriConnectivity.cc b/src/OpenMesh/Core/Mesh/TriConnectivity.cc index c0ec6d45..31f63fc3 100644 --- a/src/OpenMesh/Core/Mesh/TriConnectivity.cc +++ b/src/OpenMesh/Core/Mesh/TriConnectivity.cc @@ -494,7 +494,7 @@ void TriConnectivity::split_copy(EdgeHandle _eh, VertexHandle _vh) const VertexHandle v0 = to_vertex_handle(halfedge_handle(_eh, 0)); const VertexHandle v1 = to_vertex_handle(halfedge_handle(_eh, 1)); - const int nf = n_faces(); + const size_t nf = n_faces(); // Split the halfedge ( handle will be preserved) split(_eh, _vh); @@ -512,7 +512,7 @@ void TriConnectivity::split_copy(EdgeHandle _eh, VertexHandle _vh) { FaceHandle fh0 = face_handle(h); FaceHandle fh1 = face_handle(opposite_halfedge_handle(prev_halfedge_handle(h))); - if (fh0.idx() >= nf) // is fh0 the new face? + if (static_cast(fh0.idx()) >= nf) // is fh0 the new face? std::swap(fh0, fh1); // copy properties from old face to new face