diff options
author | Gal Horowitz <galush.horowitz@gmail.com> | 2021-06-30 20:40:00 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-01 11:37:16 +0200 |
commit | 3872c31b08cc098eeaf382c8cac181919fe1ba71 (patch) | |
tree | 2c6ac576e3fc2534101d7c1916abac0422a6c278 /Userland | |
parent | 38e9e35380c1598df572a056cc60e9d719efa61c (diff) | |
download | serenity-3872c31b08cc098eeaf382c8cac181919fe1ba71.zip |
LibCrypto: Replace incorrect operator in SignedBigInteger::bitwise_and
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp b/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp index 77c89f4315..3873da32ce 100644 --- a/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp +++ b/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp @@ -166,7 +166,7 @@ FLATTEN SignedBigInteger SignedBigInteger::bitwise_and(const SignedBigInteger& o auto result = bitwise_and(other.unsigned_value()); // The sign bit will have to be AND'd manually. - result.m_sign = is_negative() || other.is_negative(); + result.m_sign = is_negative() && other.is_negative(); return result; } |