From 685664588bcd28ab4ac73662cc16b788b0e41d6c Mon Sep 17 00:00:00 2001 From: Laurent Saboret Date: Wed, 22 Apr 2009 15:05:44 +0000 Subject: [PATCH] Fixed compiler warnings (g++ 4.3) --- .../include/CGAL/Fast_orthogonal_k_neighbor_search.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Point_set_processing_3/include/CGAL/Fast_orthogonal_k_neighbor_search.h b/Point_set_processing_3/include/CGAL/Fast_orthogonal_k_neighbor_search.h index 25dda336f63..460ec175cce 100644 --- a/Point_set_processing_3/include/CGAL/Fast_orthogonal_k_neighbor_search.h +++ b/Point_set_processing_3/include/CGAL/Fast_orthogonal_k_neighbor_search.h @@ -46,7 +46,7 @@ public: {} bounded_priority_queue(int size, const Compare& comp = Compare()) - : m_data(size), m_comp(comp), m_count(0) + : m_count(0), m_data(size), m_comp(comp) {} /** Sets the max number of elements in the queue */ @@ -58,7 +58,7 @@ public: } /** \returns the number of elements in the queue */ - inline int size() const { return m_count; } + inline unsigned int size() const { return m_count; } /** Removes all elements of the queue. The max size remains unchanged. */ inline void clear() { m_count = 0; } @@ -76,7 +76,7 @@ public: { if (m_comp(x, top())) { - int j(1), k(2); + unsigned int j(1), k(2); while (k <= m_count) { value_type* z = &(data1[k]); @@ -123,7 +123,7 @@ public: protected: - int m_count; + unsigned int m_count; std::vector m_data; Compare m_comp; };