LibCrypto: Replace incorrect operator in SignedBigInteger::bitwise_and

This commit is contained in:
Gal Horowitz 2021-06-30 20:40:00 +03:00 committed by Andreas Kling
parent 38e9e35380
commit 3872c31b08
Notes: sideshowbarker 2024-07-18 11:10:47 +09:00

View file

@ -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;
}