From df6707a26234af5880294159aad3f45ede97bf3f Mon Sep 17 00:00:00 2001 From: Jared Mulconry Date: Sat, 19 Nov 2016 02:33:58 +1100 Subject: [PATCH] Fixed build warnings on MSVC14 x64 in the BVH format sources. --- code/BVHLoader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/BVHLoader.cpp b/code/BVHLoader.cpp index ca6c5d36c..e5821fdaf 100644 --- a/code/BVHLoader.cpp +++ b/code/BVHLoader.cpp @@ -237,7 +237,7 @@ aiNode* BVHLoader::ReadNode() // add the child nodes if there are any if( childNodes.size() > 0) { - node->mNumChildren = childNodes.size(); + node->mNumChildren = static_cast(childNodes.size()); node->mChildren = new aiNode*[node->mNumChildren]; std::copy( childNodes.begin(), childNodes.end(), node->mChildren); } @@ -443,7 +443,7 @@ void BVHLoader::CreateAnimation( aiScene* pScene) anim->mDuration = double( mAnimNumFrames - 1); // now generate the tracks for all nodes - anim->mNumChannels = mNodes.size(); + anim->mNumChannels = static_cast(mNodes.size()); anim->mChannels = new aiNodeAnim*[anim->mNumChannels]; // FIX: set the array elements to NULL to ensure proper deletion if an exception is thrown