Fix: Fix signed unsigned mismatch

- closes https://github.com/assimp/assimp/issues/4854
pull/4859/head
Kim Kulling 2023-01-03 21:11:09 +01:00 committed by GitHub
parent 8c57382b20
commit df8a9bb2b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ struct aiScene
for (unsigned int i = 0; i < mNumTextures; i++) {
const char* shortTextureFilename = GetShortFilename(mTextures[i]->mFilename.C_Str());
if (strcmp(shortTextureFilename, shortFilename) == 0) {
return std::make_pair(mTextures[i], i);
return std::make_pair(mTextures[i], static_cast<int>(i));
}
}
return std::make_pair(nullptr, -1);