From 08839e1f4ca3f2a3f035ada97812e58610a8c3b4 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Fri, 1 Aug 2014 00:24:08 +0000 Subject: [PATCH] corrected some minor warning --- apps/sample/hashing_2D/test_hash2D.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/sample/hashing_2D/test_hash2D.cpp b/apps/sample/hashing_2D/test_hash2D.cpp index e480c6f0..9da30073 100644 --- a/apps/sample/hashing_2D/test_hash2D.cpp +++ b/apps/sample/hashing_2D/test_hash2D.cpp @@ -169,7 +169,7 @@ MySegmentType * DoRay(MyRayType & _r, void GetInBoxSegmentsBruteF( vcg::Box2 bbox, std::vector &result) { - for (int i=0;i::max(); MySegmentType *ret=NULL; - for (int i=0;i test; test=vcg::ClosestPoint(AllocatedSeg[i],_p); @@ -201,7 +201,7 @@ MySegmentType * DoRayBruteF(MyRayType & _r, { MyScalarType _minDist=std::numeric_limits::max(); MySegmentType *ret=NULL; - for (int i=0;i test; bool inters=vcg::RaySegmentIntersection(_r,AllocatedSeg[i],test); @@ -245,7 +245,7 @@ void TestBox(int num_test=100000, if (result0.size()!=result1.size())numWrong++; - for (int j = 0; j < result0.size(); j++) + for (size_t j = 0; j < result0.size(); j++) if (result0[j] != result1[j]) { numWrong++; @@ -324,7 +324,6 @@ void TestRay(int num_test=100000, int main( int argc, char **argv ) { - bool use_sub=true; (void) argc; (void) argv; int num_sample=20000;