Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #7 from rpinz/warnings
Browse files Browse the repository at this point in the history
eliminate warnings for Swift 4.1
  • Loading branch information
tanner0101 authored May 24, 2018
2 parents 1063956 + f73f5a5 commit a36b6f0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Sources/BCrypt/Hash.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,21 @@ public final class Hash {
}

deinit {
#if swift(>=4.1)
p.deinitialize(count: Key.p.count)
p.deallocate()
#else
p.deinitialize()
p.deallocate(capacity: Key.p.count)
#endif

#if swift(>=4.1)
s.deinitialize(count: Key.s.count)
s.deallocate()
#else
s.deinitialize()
s.deallocate(capacity: Key.s.count)
#endif
}

public func digest(message: Bytes) -> Bytes {
Expand Down

0 comments on commit a36b6f0

Please sign in to comment.