Fix <= and >= operators.

This commit is contained in:
chris_kohlhoff 2006-09-19 11:11:39 +00:00
parent 7b16e585c3
commit acc304b757

View File

@ -206,13 +206,13 @@ public:
/// Compare addresses for ordering.
friend bool operator<=(const address_v4& a1, const address_v4& a2)
{
return a1.to_ulong() < a2.to_ulong();
return a1.to_ulong() <= a2.to_ulong();
}
/// Compare addresses for ordering.
friend bool operator>=(const address_v4& a1, const address_v4& a2)
{
return a1.to_ulong() > a2.to_ulong();
return a1.to_ulong() >= a2.to_ulong();
}
/// Obtain an address object that represents any address.