fix CSubNet comparison operator
This commit is contained in:
parent
fcc8920f36
commit
171b4de8d9
|
@ -1342,7 +1342,7 @@ 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
|
||||
|
|
Loading…
Reference in New Issue