From 5b09758f15716ec81f271465c8d7c488170b3257 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Thu, 23 Jan 2020 15:04:07 +0100 Subject: [PATCH] Update HL1MDLLoader.cpp Fix compiler warning --- code/MDL/HalfLife/HL1MDLLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/MDL/HalfLife/HL1MDLLoader.cpp b/code/MDL/HalfLife/HL1MDLLoader.cpp index f662c7eec..ad4db204f 100644 --- a/code/MDL/HalfLife/HL1MDLLoader.cpp +++ b/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; }