Fix signed/unsigned mismatch warning (#428)

* Fix signed/unsigned mismatch warning

* Fix GCC type warnings
This commit is contained in:
IgnacioFDM
2017-04-04 05:32:04 -03:00
committed by Vincent Herbet
parent 2863455185
commit 2d049b7ff3
4 changed files with 5 additions and 5 deletions

View File

@ -589,7 +589,7 @@ const char *CLangMngr::GetLangName(int langId)
{
for (size_t iter = 0; iter < m_Languages.length(); ++iter)
{
if (iter == langId)
if ((int)iter == langId)
{
return m_Languages[iter]->GetName();
}

View File

@ -3166,7 +3166,7 @@ static cell AMX_NATIVE_CALL register_logevent(AMX *amx, cell *params)
auto logevent = LogEventHandles.lookup(handle)->m_logevent;
auto numparam = *params / sizeof(cell);
for (auto i = 3; i <= numparam; ++i)
for (auto i = 3U; i <= numparam; ++i)
{
logevent->registerFilter(get_amxstring(amx, params[i], 0, length));
}

View File

@ -601,7 +601,7 @@ static cell AMX_NATIVE_CALL amx_fputs(AMX *amx, cell *params)
++length;
}
if (fp->Write(string, length) != length)
if (fp->Write(string, length) != (size_t)length)
{
return -1;
}