From 991aa707d9bb1da2beb78da4df1f22ba33b5a354 Mon Sep 17 00:00:00 2001 From: granzuglia Date: Mon, 7 Jul 2014 06:58:08 +0000 Subject: [PATCH] - added int cast in order to avoid annoying warnings --- vcg/complex/allocate.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/vcg/complex/allocate.h b/vcg/complex/allocate.h index b2ac4a22..d34a73b0 100644 --- a/vcg/complex/allocate.h +++ b/vcg/complex/allocate.h @@ -27,6 +27,8 @@ #ifndef __VCGLIB_TRIALLOCATOR #define __VCGLIB_TRIALLOCATOR +#include + namespace vcg { namespace tri { /** \addtogroup trimesh @@ -174,7 +176,7 @@ public: } m.vert.resize(m.vert.size()+n); - m.vn+=n; + m.vn+=int(n); typename std::set::iterator ai; for(ai = m.vert_attr.begin(); ai != m.vert_attr.end(); ++ai) @@ -288,7 +290,7 @@ public: } m.edge.resize(m.edge.size()+n); - m.en+=n; + m.en+=int(n); typename std::set::iterator ai; for(ai = m.edge_attr.begin(); ai != m.edge_attr.end(); ++ai) @@ -392,7 +394,7 @@ public: } m.hedge.resize(m.hedge.size()+n); - m.hn+=n; + m.hn+=int(n); pu.newBase = &*m.hedge.begin(); pu.newEnd = &m.hedge.back()+1; @@ -585,7 +587,7 @@ public: } // The actual resize m.face.resize(m.face.size()+n); - m.fn+=n; + m.fn+=int(n); size_t siz=(size_t)(m.face.size()-n); FaceIterator firstNewFace = m.face.begin();