소스 검색

LibCrypto: Replace incorrect operator in SignedBigInteger::bitwise_and

Gal Horowitz 4 년 전
부모
커밋
3872c31b08
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp

+ 1 - 1
Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp

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