Explorar o código

Update HL1MDLLoader.cpp

Fix compiler warning
Kim Kulling %!s(int64=5) %!d(string=hai) anos
pai
achega
5b09758f15
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
     for (outwidth = 1; outwidth < ptexture->width; outwidth <<= 1)
         ;
         ;
 
 
-    if (outwidth > BuffenLen) {
+    if ((size_t)outwidth > BuffenLen) {
         outwidth = BuffenLen;
         outwidth = BuffenLen;
     }
     }