fix signed/unsigned mismatch

This commit is contained in:
Massimiliano Corsini 2006-01-27 09:58:47 +00:00
parent 91b71e0589
commit 3b049ec0e4
2 changed files with 9 additions and 2 deletions

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.32 2006/01/23 13:33:54 cignoni
Added a missing vcg::
Revision 1.31 2006/01/22 17:06:27 cignoni
vi/fi mismatch in ClipWithBox
@ -514,7 +517,8 @@ namespace vcg {
{
//cut and paste the additional hole.
std::vector<Point3x> hole2;
int index = find(hole.begin(),hole.end(),newpoint) - hole.begin();
int index = static_cast<int>(find(hole.begin(),hole.end(),newpoint)
- hole.begin());
for(unsigned int i=index; i<hole.size(); i++)
hole2.push_back(hole[i]);

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.8 2005/12/06 18:00:39 pietroni
added deleted objects control for GridClosest() function call
Revision 1.7 2005/12/02 00:30:27 cignoni
Corrected typename usage and removed excess ';' from end of template functions, for gcc compiling
@ -280,7 +283,7 @@ namespace vcg{
}
}
}
return (_objectPtrs.size());
return (static_cast<unsigned int>(_objectPtrs.size()));
}
}