From 5119344c7d36b949112888e773aa7abe6fd1659c Mon Sep 17 00:00:00 2001 From: BotoX Date: Mon, 11 Jul 2016 15:39:05 +0200 Subject: [PATCH] fix warning on some compilers --- extension.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension.cpp b/extension.cpp index f23574b..5d1cf43 100644 --- a/extension.cpp +++ b/extension.cpp @@ -130,7 +130,7 @@ bool CSSFixes::SDK_OnLoad(char *error, size_t maxlength, bool late) return false; } - for(int i = 0; i < sizeof(gs_Patches) / sizeof(*gs_Patches); i++) + for(size_t i = 0; i < sizeof(gs_Patches) / sizeof(*gs_Patches); i++) { struct SrcdsPatch *pPatch = &gs_Patches[i]; int PatchLen = strlen(pPatch->pPatchPattern); @@ -179,7 +179,7 @@ void CSSFixes::SDK_OnUnload() gameconfs->CloseGameConfigFile(g_pGameConf); - for(int i = 0; i < sizeof(gs_Patches) / sizeof(*gs_Patches); i++) + for(size_t i = 0; i < sizeof(gs_Patches) / sizeof(*gs_Patches); i++) { struct SrcdsPatch *pPatch = &gs_Patches[i]; int PatchLen = strlen(pPatch->pPatchPattern);