From 9093cce62247d879ef2aac1ed95ae1682bd0668d Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Thu, 5 Aug 2010 14:20:43 +0000 Subject: [PATCH] removed harmless gcc warnings --- vcg/complex/trimesh/nring.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vcg/complex/trimesh/nring.h b/vcg/complex/trimesh/nring.h index 0397898a..5d1756f8 100644 --- a/vcg/complex/trimesh/nring.h +++ b/vcg/complex/trimesh/nring.h @@ -63,7 +63,7 @@ public: Nring(VertexType* v, MeshType* m) : m(m) { - assert((v - &*m->vert.begin()) < m->vert.size()); + assert((unsigned)(v - &*m->vert.begin()) < m->vert.size()); insertAndFlag(v); } @@ -124,9 +124,9 @@ public: void clear() { - for(int i=0; i< allV.size(); ++i) + for(unsigned i=0; i< allV.size(); ++i) allV[i]->ClearV(); - for(int i=0; i< allF.size(); ++i) + for(unsigned i=0; i< allF.size(); ++i) allF[i]->ClearV(); allV.clear();