diff --git a/src/ifcgeom/IfcGeomShapes.cpp b/src/ifcgeom/IfcGeomShapes.cpp index 18711fca83..4f1e8b0519 100644 --- a/src/ifcgeom/IfcGeomShapes.cpp +++ b/src/ifcgeom/IfcGeomShapes.cpp @@ -1368,7 +1368,7 @@ namespace { // @todo this probably still does not work on a closed wire consisting of one (circular) edge. - while (sorted_edges.size() < num_edges && + while ((int) sorted_edges.size() < num_edges && (!v0.IsSame(v1) || ignore_first_equality_because_closed)) { ignore_first_equality_because_closed = false;