From 0aa818ca1f885f6598c35ba01f8d3ea633a58966 Mon Sep 17 00:00:00 2001 From: Clement Jamin Date: Tue, 25 Nov 2014 13:21:53 +0100 Subject: [PATCH] Fix a bug in the input/output (due to mixed sizes of integers) --- Triangulation/include/CGAL/Triangulation_data_structure.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Triangulation/include/CGAL/Triangulation_data_structure.h b/Triangulation/include/CGAL/Triangulation_data_structure.h index f142545d082..32c2d77ed35 100644 --- a/Triangulation/include/CGAL/Triangulation_data_structure.h +++ b/Triangulation/include/CGAL/Triangulation_data_structure.h @@ -609,7 +609,7 @@ public: // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - INPUT / OUTPUT std::istream & read_full_cells(std::istream &, const std::vector &); - std::ostream & write_full_cells(std::ostream &, std::map &) const; + std::ostream & write_full_cells(std::ostream &, std::map &) const; }; // end of ``declaration/definition'' of Triangulation_data_structure<...> @@ -1392,7 +1392,7 @@ Triangulation_data_structure template std::ostream & Triangulation_data_structure -::write_full_cells(std::ostream & os, std::map & index_of_vertex) const +::write_full_cells(std::ostream & os, std::map & index_of_vertex) const { std::map index_of_full_cell; @@ -1526,8 +1526,8 @@ operator<<(std::ostream & os, const Triangulation_data_structure return os; // write the vertices - std::map index_of_vertex; - std::size_t i = 0; + std::map index_of_vertex; + int i = 0; for( Vertex_iterator it = tr.vertices_begin(); it != tr.vertices_end(); ++it, ++i ) { os << *it; // write the vertex