diff --git a/Combinatorial_map/include/CGAL/Face_graph_wrapper.h b/Combinatorial_map/include/CGAL/Face_graph_wrapper.h index 566c1fa2513..9bb649861f6 100644 --- a/Combinatorial_map/include/CGAL/Face_graph_wrapper.h +++ b/Combinatorial_map/include/CGAL/Face_graph_wrapper.h @@ -452,7 +452,7 @@ public: { return mmap.is_empty(); } size_type capacity() const - { CGAL::num_halfedges(mmap.get_fg()); } + { return CGAL::num_halfedges(mmap.get_fg()); } bool is_used(size_type i) const { diff --git a/Surface_mesh_topology/include/CGAL/Path_on_surface.h b/Surface_mesh_topology/include/CGAL/Path_on_surface.h index e7f4d0df433..89190345175 100644 --- a/Surface_mesh_topology/include/CGAL/Path_on_surface.h +++ b/Surface_mesh_topology/include/CGAL/Path_on_surface.h @@ -477,7 +477,7 @@ public: bool update_isclosed=true) { CGAL::Random& random=get_default_random(); - extend_path_randomly(random, allow_half_turn, update_isclosed); + return extend_path_randomly(random, allow_half_turn, update_isclosed); } void generate_random_path(std::size_t length, CGAL::Random& random,