removed harmless gcc warning

This commit is contained in:
Paolo Cignoni 2013-06-24 09:36:46 +00:00
parent 388435d15a
commit 9acdf598a1
1 changed files with 2 additions and 2 deletions

View File

@ -578,7 +578,7 @@ void Build( MeshType & in, const V & v, const F & f)
typename MeshType::VertexType tv;
for(int i=0;i<v.size();++i)
for(size_t i=0;i<v.size();++i)
{
float *vv=(float *)(&v[i]);
in.vert[i].P() = CoordType( vv[0],vv[1],vv[2]);
@ -594,7 +594,7 @@ void Build( MeshType & in, const V & v, const F & f)
typename MeshType::FaceType ft;
for(int i=0;i<f.size();++i)
for(size_t i=0;i<f.size();++i)
{
int * ff=(int *)(&f[i]);
assert( ff[0]>=0 );