diff --git a/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp b/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp index f665f401c7..77c89f4315 100644 --- a/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp +++ b/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp @@ -156,8 +156,7 @@ FLATTEN SignedBigInteger SignedBigInteger::bitwise_or(const SignedBigInteger& ot auto result = bitwise_or(other.unsigned_value()); // The sign bit will have to be OR'd manually. - if (other.is_negative()) - result.negate(); + result.m_sign = is_negative() || other.is_negative(); return result; }