mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix compare()
This commit is contained in:
@@ -234,28 +234,28 @@ public:
|
||||
*/
|
||||
bool operator< (UnsignedInteger <Bytes> const& other) const noexcept
|
||||
{
|
||||
return compare (other) == -1;
|
||||
return compare (other) < 0;
|
||||
}
|
||||
|
||||
/** Ordered comparison.
|
||||
*/
|
||||
bool operator<= (UnsignedInteger <Bytes> const& other) const noexcept
|
||||
{
|
||||
return compare (other) != 1;
|
||||
return compare (other) <= 0;
|
||||
}
|
||||
|
||||
/** Ordered comparison.
|
||||
*/
|
||||
bool operator> (UnsignedInteger <Bytes> const& other) const noexcept
|
||||
{
|
||||
return compare (other) == 1;
|
||||
return compare (other) > 0;
|
||||
}
|
||||
|
||||
/** Ordered comparison.
|
||||
*/
|
||||
bool operator>= (UnsignedInteger <Bytes> const& other) const noexcept
|
||||
{
|
||||
return compare (other) != -1;
|
||||
return compare (other) >= 0;
|
||||
}
|
||||
|
||||
/** Perform bitwise logical-not.
|
||||
|
||||
Reference in New Issue
Block a user