Fix warning

pull/3329/head
Malcolm Tyrrell 2020-07-15 09:12:52 +01:00
parent a56134ba33
commit c0d978786e
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ void glTF2Importer::ImportMeshes(glTF2::Asset &r) {
if (faces) { if (faces) {
aim->mFaces = faces; aim->mFaces = faces;
const unsigned int actualNumFaces = facePtr - faces; const unsigned int actualNumFaces = static_cast<unsigned int>(facePtr - faces);
if (actualNumFaces < nFaces) { if (actualNumFaces < nFaces) {
ASSIMP_LOG_WARN("Some faces had out-of-range indices. Those faces were dropped."); ASSIMP_LOG_WARN("Some faces had out-of-range indices. Those faces were dropped.");
} }