diff --git a/NewKernel_d/include/CGAL/NewKernel_d/Vector/array.h b/NewKernel_d/include/CGAL/NewKernel_d/Vector/array.h index 8e9b77f01d6..26c014068f8 100644 --- a/NewKernel_d/include/CGAL/NewKernel_d/Vector/array.h +++ b/NewKernel_d/include/CGAL/NewKernel_d/Vector/array.h @@ -65,7 +65,7 @@ template struct Array_vector { struct Iterator { template Vector operator()(unsigned CGAL_assertion_code(d),Iter const& f,Iter const& e) const { - CGAL_assertion(d==std::distance(f,e)); + CGAL_assertion(d==(unsigned) std::distance(f,e)); CGAL_assertion(d<=d_); //TODO: optimize for forward iterators Vector a;