From 235d03935e72d444f764d033e5086d893c89f798 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni Date: Sat, 1 Apr 2017 18:19:48 +0200 Subject: [PATCH] harmless warning issued only on release (assert involving variables) --- vcg/complex/algorithms/update/topology.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vcg/complex/algorithms/update/topology.h b/vcg/complex/algorithms/update/topology.h index 072528d6..d37ddab5 100644 --- a/vcg/complex/algorithms/update/topology.h +++ b/vcg/complex/algorithms/update/topology.h @@ -429,13 +429,11 @@ static void TestVertexEdge(MeshType &m) if (!vi->IsD()) { int cnt =0; - int ind = tri::Index(m,*vi); - int incidentNum = numVertex[ind]; for(edge::VEIterator vei(&*vi);!vei.End();++vei) cnt++; EdgeType *vep = vi->VEp(); - assert((incidentNum==0) == (vi->VEp()==0) ); - assert(cnt==incidentNum); + assert((numVertex[tri::Index(m,*vi)] == 0) == (vi->VEp()==0) ); + assert(cnt==numVertex[tri::Index(m,*vi)]); } } }