Fix signed/unsigned mismatch warning (#428)
* Fix signed/unsigned mismatch warning * Fix GCC type warnings
This commit is contained in:
committed by
Vincent Herbet
parent
2863455185
commit
2d049b7ff3
@ -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();
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user