From 646db6ef7449c17786bde808dab8c33d08ff64fe Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 27 Oct 2020 09:43:46 +0100 Subject: [PATCH] Try to fix a warning on MSVC ``` ...\include\CGAL/Polyhedral_mesh_domain_with_features_3.h(264): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data with [ _Ty=int ] ...\cmake\platforms\x64_Cygwin-Windows10_MSVC2017-Release-64bits\test\Mesh_3\test_meshing_polylines_only.cpp(80): note: see reference to function template instantiation 'void CGAL::Polyhedral_mesh_domain_with_features_3,CGAL::HalfedgeDS_default,std::allocator<_Ty>>,CGAL::Default,Patch_id,CGAL::Tag_true>::add_features,std::allocator>>>>>>(InputIterator,InputIterator)' being compiled with [ Gt=K, Patch_id=int, _Ty=int, Kernel_=CGAL::Epick, InputIterator=std::_Vector_iterator>> ] ``` --- Mesh_3/include/CGAL/Polyhedral_mesh_domain_with_features_3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mesh_3/include/CGAL/Polyhedral_mesh_domain_with_features_3.h b/Mesh_3/include/CGAL/Polyhedral_mesh_domain_with_features_3.h index 4f99bc8c9eb..ea7cc106bfb 100644 --- a/Mesh_3/include/CGAL/Polyhedral_mesh_domain_with_features_3.h +++ b/Mesh_3/include/CGAL/Polyhedral_mesh_domain_with_features_3.h @@ -261,7 +261,7 @@ public: i != patch_ids_bitset.npos; i = patch_ids_bitset.find_next(i)) { - all_patch_ids.push_back(i + min); + all_patch_ids.push_back(static_cast(i + min)); } using Polyline = typename std::iterator_traits::value_type; auto identity_property_map = boost::typed_identity_property_map();