Browse Source

fix CSubNet comparison operator

0.13
Jonas Schnelli 9 years ago
parent
commit
d624167387
  1. 2
      src/netbase.cpp

2
src/netbase.cpp

@ -1332,7 +1332,7 @@ bool operator!=(const CSubNet& a, const CSubNet& b) @@ -1332,7 +1332,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