From 0b08afa4f85108e4f5cce5edc5db5332c334b3d3 Mon Sep 17 00:00:00 2001 From: dibenedetto Date: Wed, 30 Nov 2005 10:32:44 +0000 Subject: [PATCH] Added (int) cast to std::distance to prevent compiler warning message. --- vcg/space/index/grid_static_ptr.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vcg/space/index/grid_static_ptr.h b/vcg/space/index/grid_static_ptr.h index 7d38a446..21d95317 100644 --- a/vcg/space/index/grid_static_ptr.h +++ b/vcg/space/index/grid_static_ptr.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.32 2005/11/10 15:44:17 cignoni +Added casts to remove warnings + Revision 1.31 2005/10/07 13:27:22 turini Minor changes in Set method: added use of template scalar type computing BBox. @@ -355,7 +358,7 @@ namespace vcg { { OBJITER i; Box3 b; - int _size=std::distance(_oBegin,_oEnd); + int _size=(int)std::distance(_oBegin,_oEnd); if(!_bbox.IsNull()) bbox=_bbox; else