fix CSubNet comparison operator
This commit is contained in:
parent
4e36e9bcc7
commit
d624167387
1 changed files with 1 additions and 1 deletions
|
@ -1332,7 +1332,7 @@ bool operator!=(const CSubNet& a, const CSubNet& b)
|
||||||
|
|
||||||
bool operator<(const CSubNet& a, const CSubNet& b)
|
bool operator<(const CSubNet& a, const CSubNet& b)
|
||||||
{
|
{
|
||||||
return (a.network < b.network || (a.network == b.network && memcmp(a.netmask, b.netmask, 16)));
|
return (a.network < b.network || (a.network == b.network && memcmp(a.netmask, b.netmask, 16) < 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
|
Loading…
Reference in a new issue