diff --git a/code/MS3DLoader.cpp b/code/MS3DLoader.cpp index ef16a756a..c50ccc46e 100644 --- a/code/MS3DLoader.cpp +++ b/code/MS3DLoader.cpp @@ -423,7 +423,7 @@ void MS3DImporter::InternReadFile( const std::string& pFile, for (unsigned int i = 0; i < groups.size(); ++i) { TempGroup& g = groups[i]; if (g.mat == UINT_MAX) { - g.mat = materials.size()-1; + g.mat = static_cast(materials.size()-1); } } } @@ -483,7 +483,7 @@ void MS3DImporter::InternReadFile( const std::string& pFile, m->mMaterialIndex = g.mat; m->mPrimitiveTypes = aiPrimitiveType_TRIANGLE; - m->mFaces = new aiFace[m->mNumFaces = g.triangles.size()]; + m->mFaces = new aiFace[m->mNumFaces = static_cast(g.triangles.size())]; m->mNumVertices = m->mNumFaces*3; // storage for vertices - verbose format, as requested by the postprocessing pipeline