소스 검색

Update HL1MDLLoader.cpp

Fix compiler warning
Kim Kulling 5 년 전
부모
커밋
5b09758f15
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      code/MDL/HalfLife/HL1MDLLoader.cpp

+ 1 - 1
code/MDL/HalfLife/HL1MDLLoader.cpp

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