From a84cf9c8dd7db9c95120ac3cb1684fcd41d93aa4 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Mon, 10 Jul 2006 12:43:13 +0000 Subject: [PATCH] explicit cast in _IsInHtable() to resolve a warning --- vcg/space/index/spatial_hashing.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vcg/space/index/spatial_hashing.h b/vcg/space/index/spatial_hashing.h index becb635f..315f6907 100644 --- a/vcg/space/index/spatial_hashing.h +++ b/vcg/space/index/spatial_hashing.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.18 2006/04/20 08:30:27 cignoni +small GCC compiling issues + Revision 1.17 2006/01/23 21:26:57 ponchio gcc compatibility (templates mostly) bbox -> this->bbox @@ -243,7 +246,7 @@ namespace vcg{ bool _IsInHtable(Point3i cell,IteHtable &result) { int h=Hash(cell); - int count=hash_table.count(h); + int count = (int) hash_table.count(h); if (count==0)///in this case there is no entry for that key return false; else