瀏覽代碼

Meeting Xcode Beta3 requirements

Sali0m 10 年之前
父節點
當前提交
51a0944420
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      CryptoSwift/ArrayExtension.swift

+ 3 - 3
CryptoSwift/ArrayExtension.swift

@@ -11,8 +11,8 @@ import Foundation
 extension Array {
     
     /** split in chunks with given chunk size */
-    func chunks(chunksize:Int) -> [Array<T>] {
-        var words = [[T]]()
+    func chunks(chunksize:Int) -> [Array<Element>] {
+        var words = [[Element]]()
         words.reserveCapacity(self.count / chunksize)        
         for var idx = chunksize; idx <= self.count; idx = idx + chunksize {
             let word = Array(self[idx - chunksize..<idx]) // this is slow for large table
@@ -24,4 +24,4 @@ extension Array {
         }
         return words
     }
-}
+}