diff --git a/Sources/BigInt/BigInt.swift b/Sources/BigInt/BigInt.swift index 82f10db..17499ca 100644 --- a/Sources/BigInt/BigInt.swift +++ b/Sources/BigInt/BigInt.swift @@ -315,7 +315,7 @@ extension BigInt: SignedNumeric { words[i] = ~words[i] } } - + BigInt._dropExcessWords(words: &words) } @@ -362,7 +362,7 @@ extension BigInt: BinaryInteger { } if isNegative { - self = -self + self.negate() } }