diff --git a/wrap/io_trimesh/import_asc.h b/wrap/io_trimesh/import_asc.h index 89cbbebd..61a9353a 100644 --- a/wrap/io_trimesh/import_asc.h +++ b/wrap/io_trimesh/import_asc.h @@ -100,7 +100,7 @@ static int Open( MESH_TYPE &m, const char * filename, CallBackPos *cb=0, bool tr Point3f pp; float q; - int cnt=0; + size_t cnt=0; int ret; char buf[1024]; @@ -140,7 +140,7 @@ static int Open( MESH_TYPE &m, const char * filename, CallBackPos *cb=0, bool tr } cnt=m.vert.size(); qDebug("Grid is %i x %i = %i (%i) ",i,cnt/i,i* (cnt/i),cnt); - tri::FaceGrid(m,i,cnt/i); + tri::FaceGrid(m,i,int(cnt/i)); tri::Clean::FlipMesh(m); return E_NOERROR; }