From 3872c31b08cc098eeaf382c8cac181919fe1ba71 Mon Sep 17 00:00:00 2001 From: Gal Horowitz Date: Wed, 30 Jun 2021 20:40:00 +0300 Subject: [PATCH] LibCrypto: Replace incorrect operator in SignedBigInteger::bitwise_and --- Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }