浏览代码

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;
     }