[BigInt] Combine *= and << into simpler <<=

This commit is contained in:
Ben Rimmington committed 2020-01-19 10:31:39 +00:00
1 parent 506ea36331
commit 98023c3575
1 file changed
+1 -1
+1 -1
View File
@@ -350,7 +350,7 @@ extension BigInt: BinaryInteger {
self = BigInt(source.significandBitPattern)
self |= BigInt(1) << T.significandBitCount
self *= BigInt(1) << source.exponent
self <<= source.exponent
self >>= T.significandBitCount
if isNegative {