From 42a5755fb0210e3d7b62ebfb9c7fd6e1d95c1c55 Mon Sep 17 00:00:00 2001 From: granzuglia Date: Sat, 9 Aug 2014 09:47:24 +0000 Subject: [PATCH] import_asc.h: - removed Visual Studio warnings --- wrap/io_trimesh/import_asc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }