Update HL1MDLLoader.cpp

Fix possible x64 issue.
pull/2928/head
Kim Kulling 2020-01-23 16:20:34 +01:00 committed by GitHub
parent b74b96fca4
commit e569831253
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ void HL1MDLLoader::read_texture(const Texture_HL1 *ptexture,
for (outwidth = 1; outwidth < ptexture->width; outwidth <<= 1)
;
if ((size_t)outwidth > BuffenLen) {
if ( outwidth > static_cast<int>(BuffenLen)) {
outwidth = BuffenLen;
}