fix warning on some compilers

This commit is contained in:
BotoX 2016-07-11 15:39:05 +02:00
parent dbff71cc89
commit 5119344c7d
1 changed files with 2 additions and 2 deletions

View File

@ -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);