Skip to content

Commit d9117f5

Browse files
author
Max Moiseev
committed
[Foundation] Unbreaking the expression that used to be too complex
1 parent 40ea736 commit d9117f5

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

stdlib/public/SDK/Foundation/AffineTransform.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,7 @@ public struct AffineTransform : ReferenceConvertible, Hashable, CustomStringConv
270270
}
271271

272272
public var hashValue : Int {
273-
// FIXME(integers): the expression was broken into pieces to speed up
274-
// compilation.
275-
// Used to be just: return Int(m11 + m12 + m21 + m22 + tX + tY)
276-
let a: CGFloat = m11 + m12
277-
let b: CGFloat = m21 + m22
278-
let c: CGFloat = tX + tY
279-
return Int(a + b + c)
273+
return Int(m11 + m12 + m21 + m22 + tX + tY)
280274
}
281275

282276
public var description: String {

0 commit comments

Comments
 (0)