[BigInt] Change self = -self to self.negate()

This commit is contained in:
Ben Rimmington committed 2020-01-17 07:33:36 +00:00
1 parent 6f4374cd99
commit b03af80076
1 file changed
+2 -2
+2 -2
View File
@@ -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()
}
}