Fix: Fix signed unsigned mismatch
- closes https://github.com/assimp/assimp/issues/4854pull/4859/head
parent
8c57382b20
commit
df8a9bb2b8
|
@ -433,7 +433,7 @@ struct aiScene
|
||||||
for (unsigned int i = 0; i < mNumTextures; i++) {
|
for (unsigned int i = 0; i < mNumTextures; i++) {
|
||||||
const char* shortTextureFilename = GetShortFilename(mTextures[i]->mFilename.C_Str());
|
const char* shortTextureFilename = GetShortFilename(mTextures[i]->mFilename.C_Str());
|
||||||
if (strcmp(shortTextureFilename, shortFilename) == 0) {
|
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);
|
return std::make_pair(nullptr, -1);
|
||||||
|
|
Loading…
Reference in New Issue