mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02:00
LibCrypto: Add operator>() to UnsignedBigInteger and SignedBigInteger
Piggybacking on operator!=() and operator<().
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 10:12:32 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/89641d90db7 Pull-request: https://github.com/SerenityOS/serenity/pull/8534
@@ -332,6 +332,11 @@ bool UnsignedBigInteger::operator<(const UnsignedBigInteger& other) const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool UnsignedBigInteger::operator>(const UnsignedBigInteger& other) const
|
||||
{
|
||||
return *this != other && !(*this < other);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void AK::Formatter<Crypto::UnsignedBigInteger>::format(FormatBuilder& fmtbuilder, const Crypto::UnsignedBigInteger& value)
|
||||
|
||||
Reference in New Issue
Block a user