mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 11:48:06 +00:00
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: 3872c31b08
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());
|
auto result = bitwise_and(other.unsigned_value());
|
||||||
|
|
||||||
// The sign bit will have to be AND'd manually.
|
// 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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue