1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +00:00

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

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