diff --git a/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_2/Segment_Delaunay_graph_2_impl.h b/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_2/Segment_Delaunay_graph_2_impl.h index 63d53217dff..f7bba3014c0 100644 --- a/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_2/Segment_Delaunay_graph_2_impl.h +++ b/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_2/Segment_Delaunay_graph_2_impl.h @@ -252,7 +252,7 @@ typename Segment_Delaunay_graph_2::Vertex_handle Segment_Delaunay_graph_2:: insert_point(const Storage_site_2& ss, const Point_2& p, Vertex_handle vnear) { - int n = number_of_vertices(); + size_type n = number_of_vertices(); if ( n == 0 ) { return insert_first(ss, p); } else if ( n == 1 ) { @@ -2040,7 +2040,7 @@ remove_degree_d_vertex(const Vertex_handle& v) #else minimize_degree(v); - int deg = degree(v); + size_type deg = degree(v); if ( deg == 3 ) { remove_degree_3(v); return; @@ -2144,7 +2144,7 @@ remove_base(const Vertex_handle& v) return remove_third(v); } - int deg = degree(v); + size_type deg = degree(v); if ( deg == 2 ) { remove_degree_2(v); } else if ( deg == 3 ) { @@ -3121,8 +3121,8 @@ file_output(std::ostream& os, Point_handle_mapper& P, } } - std::map V; - std::map F; + std::map V; + std::map F; // first vertex (infinite vertex) size_type inum = 0; diff --git a/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_hierarchy_2.h b/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_hierarchy_2.h index dc285b22ca5..6ce4cf9aa46 100644 --- a/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_hierarchy_2.h +++ b/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_hierarchy_2.h @@ -445,9 +445,9 @@ protected: return (std::min)(die(), (int)sdg_hierarchy_2__maxlevel)-1; } - size_type find_level(Vertex_handle v) const { + int find_level(Vertex_handle v) const { CGAL_precondition( v != Vertex_handle() ); - size_type level = 0; + int level = 0; Vertex_handle vertex = v; while ( vertex->up() != Vertex_handle() ) { vertex = vertex->up(); @@ -458,11 +458,11 @@ protected: } Vertex_handle - vertex_at_level(const Vertex_handle& v, size_type k) const + vertex_at_level(const Vertex_handle& v, int k) const { CGAL_precondition( k <= sdg_hierarchy_2__maxlevel ); - size_type level = 0; + int level = 0; Vertex_handle v_at_level = v; while ( level < k ) { v_at_level = v_at_level->up();