소스 검색

Fix toUInt32Array() #308

Marcin Krzyżanowski 9 년 전
부모
커밋
c95da766bf
1개의 변경된 파일0개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 8
      Sources/CryptoSwift/Collection+Extension.swift

+ 0 - 8
Sources/CryptoSwift/Collection+Extension.swift

@@ -19,10 +19,6 @@ extension Collection where Self.Iterator.Element == UInt8, Self.Index == Int {
             result.append(val)
         }
 
-        for _ in result.count..<MemoryLayout<UInt32>.size {
-            result.append(0)
-        }
-
         return result
     }
 
@@ -42,10 +38,6 @@ extension Collection where Self.Iterator.Element == UInt8, Self.Index == Int {
             result.append(val)
         }
 
-        for _ in result.count..<MemoryLayout<UInt64>.size {
-            result.append(0)
-        }
-
         return result
     }