From 5ce1cfedfea01d432fe7469025312769d6e166aa Mon Sep 17 00:00:00 2001 From: Mike Samsonov Date: Mon, 4 Feb 2019 16:15:52 +0000 Subject: [PATCH] warning fix for gcc --- code/glTF2Importer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/glTF2Importer.cpp b/code/glTF2Importer.cpp index 0eafe227f..4228db23f 100755 --- a/code/glTF2Importer.cpp +++ b/code/glTF2Importer.cpp @@ -666,7 +666,7 @@ void glTF2Importer::ImportMeshes(glTF2::Asset& r) if (faces) { aim->mFaces = faces; aim->mNumFaces = static_cast(nFaces); - ai_assert(CheckValidFacesIndices(faces, nFaces, aim->mNumVertices)); + ai_assert(CheckValidFacesIndices(faces, static_cast(nFaces), aim->mNumVertices)); } if (prim.material) { @@ -773,13 +773,13 @@ static void BuildVertexWeightMapping(Mesh::Primitive& primitive, std::vector 0 && bone < map.size()) { map[bone].reserve(8); - map[bone].emplace_back(i, weight); + map[bone].emplace_back(static_cast(i), weight); } } }