From 98023c3575cf2da7fa8f3dafd987dd674f25084e Mon Sep 17 00:00:00 2001 From: Ben Rimmington Date: Sun, 19 Jan 2020 10:31:39 +0000 Subject: [PATCH] [BigInt] Combine `*=` and `<<` into simpler `<<=` --- Sources/BigInt/BigInt.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/BigInt/BigInt.swift b/Sources/BigInt/BigInt.swift index ab51d60..bed183a 100644 --- a/Sources/BigInt/BigInt.swift +++ b/Sources/BigInt/BigInt.swift @@ -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 {