mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-03-21 12:28:56 +01:00
oh, hello bug
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40207
This commit is contained in:
parent
581a0dc7a8
commit
6e45e05d3d
@ -301,7 +301,7 @@ void CSmmAPI::GetShVersions(int &shvers, int &shimpl)
|
||||
|
||||
int CSmmAPI::FormatIface(char iface[], unsigned int maxlength)
|
||||
{
|
||||
unsigned int length = (unsigned int)strlen(iface);
|
||||
int length = (int)strlen(iface);
|
||||
int i;
|
||||
int num = 0;
|
||||
|
||||
@ -311,7 +311,7 @@ int CSmmAPI::FormatIface(char iface[], unsigned int maxlength)
|
||||
break;
|
||||
}
|
||||
|
||||
if ( (num && (maxlength <= length)) || (!num && (maxlength <= length+3)) )
|
||||
if ( (num && ((int)maxlength <= length)) || (!num && ((int)maxlength <= length+3)) )
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user