From 44606a1e53f52e2b792805d36bba92d93c7665b7 Mon Sep 17 00:00:00 2001 From: Alexander Gessler Date: Thu, 26 Jul 2012 04:04:29 +0200 Subject: [PATCH] - fbx: fix 64 bit compile warning. --- code/FBXConverter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/FBXConverter.cpp b/code/FBXConverter.cpp index 0c67bb3d9..dc2d6caa8 100644 --- a/code/FBXConverter.cpp +++ b/code/FBXConverter.cpp @@ -718,9 +718,9 @@ private: // be moved, causing trouble when users read only the first // UV channel and ignore UV channel assignments altogether. - const unsigned int matIndex = std::distance(materials.begin(), + const unsigned int matIndex = static_cast(std::distance(materials.begin(), std::find(materials.begin(),materials.end(),out_mat) - ); + )); uvIndex = -1; BOOST_FOREACH(const MeshMap::value_type& v,meshes_converted) {