diff --git a/Polygon_repair/include/CGAL/Polygon_repair/repair.h b/Polygon_repair/include/CGAL/Polygon_repair/repair.h index c2c57426467..d40fad299f4 100644 --- a/Polygon_repair/include/CGAL/Polygon_repair/repair.h +++ b/Polygon_repair/include/CGAL/Polygon_repair/repair.h @@ -649,7 +649,7 @@ public: // Create polygons with holes and put in multipolygon std::set, Polygon_with_holes_less> ordered_polygons; - for (int i = 0; i < polygons.size(); ++i) { + for (std::size_t i = 0; i < polygons.size(); ++i) { ordered_polygons.insert(Polygon_with_holes_2(polygons[i], holes[i].begin(), holes[i].end())); } for (auto const& polygon: ordered_polygons) {