diff --git a/Boolean_set_operations_2/include/CGAL/Boolean_set_operations_2/Gps_agg_op_surface_sweep_2.h b/Boolean_set_operations_2/include/CGAL/Boolean_set_operations_2/Gps_agg_op_surface_sweep_2.h index 6c91ca5f776..842df631b95 100644 --- a/Boolean_set_operations_2/include/CGAL/Boolean_set_operations_2/Gps_agg_op_surface_sweep_2.h +++ b/Boolean_set_operations_2/include/CGAL/Boolean_set_operations_2/Gps_agg_op_surface_sweep_2.h @@ -81,7 +81,7 @@ public: using Compare_xy_2 = typename Gt2::Compare_xy_2; // Allocate all of the Subcurve objects as one block. - this->m_num_of_subCurves = std::distance(curves_begin, curves_end); + this->m_num_of_subCurves = static_cast(std::distance(curves_begin, curves_end)); if (this->m_num_of_subCurves > 0) this->m_subCurves = this->m_subCurveAlloc.allocate(this->m_num_of_subCurves);