Skip to content

Commit 56ed11e

Browse files
[stdlib] Refactor local variables names
1 parent 9f16272 commit 56ed11e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

stdlib/public/core/Bit.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ public func < (lhs: Bit, rhs: Bit) -> Bool {
9494
}
9595

9696
extension Bit : IntegerArithmeticType {
97-
static func _withOverflow(v: (Int, overflow: Bool)) -> (Bit, overflow: Bool) {
98-
if let b = Bit(rawValue: v.0) {
99-
return (b, v.overflow)
97+
static func _withOverflow(intResult: Int, overflow: Bool) -> (Bit, overflow: Bool) {
98+
if let bit = Bit(rawValue: intResult) {
99+
return (bit, overflow)
100100
} else {
101-
let bitRaw = v.0 > 0 ? v.0 % 2 : v.0 % 2 + 2
102-
return (Bit(rawValue: bitRaw)!, true)
101+
let bitRaw = intResult > 0 ? intResult % 2 : intResult % 2 + 2
102+
return (Bit(rawValue: bitRaw)!, overflow: true)
103103
}
104104
}
105105

0 commit comments

Comments
 (0)