From 2cd9ae6833b76d660ee39643cd960de41e5a893f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ho=C5=A1ek?= Date: Sat, 30 Jun 2012 20:03:29 +0200 Subject: [PATCH] cast -1 to unsigned for comparison --- HLLib/BSPFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HLLib/BSPFile.cpp b/HLLib/BSPFile.cpp index 6e54e23..6bc77d6 100644 --- a/HLLib/BSPFile.cpp +++ b/HLLib/BSPFile.cpp @@ -108,7 +108,7 @@ CDirectoryFolder *CBSPFile::CreateRoot() // Loop through each texture in the BSP file. for(hlUInt i = 0; i < this->pTextureHeader->uiTextureCount; i++) { - if(this->pTextureHeader->lpOffsets[i] == -1) + if(this->pTextureHeader->lpOffsets[i] == (hlUInt)-1) { continue; }