From 404ee465dfc752f1de698cabe9b34f25fc4f5805 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Mon, 4 Jan 2021 09:16:30 +0000 Subject: [PATCH] Address VC++ warnings --- .../include/CGAL/Polyhedral_envelope.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Polygon_mesh_processing/include/CGAL/Polyhedral_envelope.h b/Polygon_mesh_processing/include/CGAL/Polyhedral_envelope.h index 667ca0b7aa8..0e8df1b56b0 100644 --- a/Polygon_mesh_processing/include/CGAL/Polyhedral_envelope.h +++ b/Polygon_mesh_processing/include/CGAL/Polyhedral_envelope.h @@ -253,7 +253,7 @@ private: } }; - typedef AABB_primitive, Point_map, Tag_true /*UseSharedData*/, Tag_false /*CacheDatum*/> Primitive; + typedef AABB_primitive, Point_map, Tag_true /*UseSharedData*/, Tag_false /*CacheDatum*/> Primitive; typedef AABB_traits Tree_traits; typedef AABB_tree Tree; @@ -538,8 +538,8 @@ private: Point_map point_map(bounding_boxes); // constructs AABB tree - tree.insert(boost::counting_iterator(0), - boost::counting_iterator(bounding_boxes.size()), + tree.insert(boost::counting_iterator(0), + boost::counting_iterator((unsigned int)bounding_boxes.size()), datum_map, point_map); tree.build(); @@ -934,7 +934,7 @@ private: bool is_two_facets_neighbouring(const int & pid, const int &i, const int &j)const { - int facesize = halfspace[pid].size(); + std::size_t facesize = halfspace[pid].size(); if (i == j) return false; if (i == 0 && j != 1) return true; if (i == 1 && j != 0) return true; @@ -1659,8 +1659,8 @@ private: Point_map point_map(local_bounding_boxes); // constructs AABB tree - localtree.insert(boost::counting_iterator(0), - boost::counting_iterator(local_bounding_boxes.size()), + localtree.insert(boost::counting_iterator(0), + boost::counting_iterator((unsigned int)local_bounding_boxes.size()), datum_map, point_map); localtree.build();