summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorGal Horowitz <galush.horowitz@gmail.com>2021-06-30 20:40:00 +0300
committerAndreas Kling <kling@serenityos.org>2021-07-01 11:37:16 +0200
commit3872c31b08cc098eeaf382c8cac181919fe1ba71 (patch)
tree2c6ac576e3fc2534101d7c1916abac0422a6c278 /Userland
parent38e9e35380c1598df572a056cc60e9d719efa61c (diff)
downloadserenity-3872c31b08cc098eeaf382c8cac181919fe1ba71.zip
LibCrypto: Replace incorrect operator in SignedBigInteger::bitwise_and
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp2
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;
}