From 21ef30d410116753e44207493091056c5440f1ac Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Mon, 23 May 2016 16:50:02 -0700 Subject: [PATCH] fix warning on windows build --- tools/vhacd-util/src/VHACDUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/vhacd-util/src/VHACDUtil.cpp b/tools/vhacd-util/src/VHACDUtil.cpp index 7ae370fc87..21d42a13d5 100644 --- a/tools/vhacd-util/src/VHACDUtil.cpp +++ b/tools/vhacd-util/src/VHACDUtil.cpp @@ -377,7 +377,7 @@ bool vhacd::VHACDUtil::computeVHACD(FBXGeometry& geometry, // figure out if the mesh is a closed manifold or not bool closed = isClosedManifold(triangles); if (closed) { - unsigned int triangleCount = triangles.size() / 3; + unsigned int triangleCount = (unsigned int)(triangles.size()) / 3; if (_verbose) { qDebug() << " process closed part" << partIndex << ": " << " triangles =" << triangleCount; } @@ -413,7 +413,7 @@ bool vhacd::VHACDUtil::computeVHACD(FBXGeometry& geometry, } // this time we don't care if the parts are close or not - unsigned int triangleCount = triangles.size() / 3; + unsigned int triangleCount = (unsigned int)(triangles.size()) / 3; if (_verbose) { qDebug() << " process remaining open parts =" << openParts.size() << ": " << " triangles =" << triangleCount;