Browse Source

calloc parameter change UInt -> Int (rdar://19951223)

Marcin Krzyżanowski 10 years ago
parent
commit
cd752b61e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      CryptoSwift/CryptoHashBase.swift

+ 1 - 1
CryptoSwift/CryptoHashBase.swift

@@ -30,7 +30,7 @@ class HashBase {
             counter++
             msgLength++
         }
-        var bufZeros = UnsafeMutablePointer<UInt8>(calloc(UInt(counter), UInt(sizeof(UInt8))))
+        var bufZeros = UnsafeMutablePointer<UInt8>(calloc(counter, sizeof(UInt8)))
         tmpMessage.appendBytes(bufZeros, length: counter)
         
         return tmpMessage