LibCrypto: Replace incorrect operator in SignedBigInteger::bitwise_and
This commit is contained in:
parent
38e9e35380
commit
3872c31b08
Notes:
sideshowbarker
2024-07-18 11:10:47 +09:00
Author: https://github.com/GalHorowitz Commit: https://github.com/SerenityOS/serenity/commit/3872c31b08c Pull-request: https://github.com/SerenityOS/serenity/pull/8342 Reviewed-by: https://github.com/alimpfard
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue