From 88a648822a4baaa491fc7661f4b9123bb84f5e84 Mon Sep 17 00:00:00 2001 From: cignoni Date: Sat, 12 Jul 2014 21:08:15 +0000 Subject: [PATCH] a forgotten int to size_t conversion in append/remap --- vcg/complex/append.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcg/complex/append.h b/vcg/complex/append.h index 609a54f0..2c3c7373 100644 --- a/vcg/complex/append.h +++ b/vcg/complex/append.h @@ -123,7 +123,7 @@ public: if(HasFEAdjacency(ml) && HasFEAdjacency(mr)){ assert(fl.VN() == fr.VN()); for( int vi = 0; vi < fl.VN(); ++vi ){ - int idx = remap.edge[Index(mr,fr.cFEp(vi))]; + size_t idx = remap.edge[Index(mr,fr.cFEp(vi))]; if(idx!=Remap::InvalidIndex()) fl.FEp(vi) = &ml.edge[idx]; } @@ -133,7 +133,7 @@ public: if(HasFFAdjacency(ml) && HasFFAdjacency(mr)){ assert(fl.VN() == fr.VN()); for( int vi = 0; vi < fl.VN(); ++vi ){ - int idx = remap.face[Index(mr,fr.cFFp(vi))]; + size_t idx = remap.face[Index(mr,fr.cFFp(vi))]; if(idx!=Remap::InvalidIndex()){ fl.FFp(vi) = &ml.face[idx]; fl.FFi(vi) = fr.cFFi(vi);