Browse Source

fix CSubNet comparison operator

v1.0.9-lin
Jonas Schnelli 9 years ago
committed by Jack Grigg
parent
commit
171b4de8d9
No known key found for this signature in database GPG Key ID: 6A6914DAFBEA00DA
  1. 2
      src/netbase.cpp

2
src/netbase.cpp

@ -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…
Cancel
Save