Browse Source

Reduce Swift compile time.

Frank Rausch 9 years ago
parent
commit
9a2a1319fe
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Sources/String+MD5.swift

+ 5 - 1
Sources/String+MD5.swift

@@ -281,7 +281,11 @@ class MD5: HashProtocol {
         
         hh.forEach {
             let itemLE = $0.littleEndian
-            result += [UInt8(itemLE & 0xff), UInt8((itemLE >> 8) & 0xff), UInt8((itemLE >> 16) & 0xff), UInt8((itemLE >> 24) & 0xff)]
+            let r1 = UInt8(itemLE & 0xff)
+            let r2 = UInt8((itemLE >> 8) & 0xff)
+            let r3 = UInt8((itemLE >> 16) & 0xff)
+            let r4 = UInt8((itemLE >> 24) & 0xff)
+            result += [r1, r2, r3, r4]
         }
         return result
     }