Fixed warning due to signed unsigned comparison

This commit is contained in:
Jan Möbius
2023-08-22 15:20:27 +02:00
parent 1f376e2cea
commit 1e450579c5

View File

@@ -95,7 +95,7 @@ check(unsigned int _targets, std::ostream& _os)
}
}
if (heh.is_valid()) {
if (heh.idx() < -1 || heh.idx() >= mesh_.n_halfedges()) {
if (heh.idx() < -1 || heh.idx() >= (int)mesh_.n_halfedges()) {
_os << "MeshChecker: vertex " << vh
<< " has out-of-bounds outgoing HE: " << heh;
ok = false;