mirror of
https://github.com/apple/swift-numerics
synced 2026-11-29 05:24:24 +00:00
[BigInt] Change self = -self to self.negate()
This commit is contained in:
1 parent
6f4374cd99
commit
b03af80076
1 file changed
+2
-2
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user