Skip to content

Commit

Permalink
Updates to Swift 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ShihabMehboob committed Feb 14, 2018
1 parent fc48ea6 commit d658dc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Socket/Socket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ public class Socket: SocketReader, SocketWriter {
self.readBuffer.deallocate()
#else
self.readBuffer.deinitialize()
self.readBuffer.deallocate(capacity: self.readBufferSize)
self.readBuffer.deallocate(capacity: self.readBufferSize)
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/Socket/SocketUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public extension fd_set {
#if swift(>=4.1)
withCArrayAccess { $0.initialize(repeating: 0, count: __fd_set_count) }
#else
withCArrayAccess { $0.initialize(to: 0, count: __fd_set_count) }
withCArrayAccess { $0.initialize(to: 0, count: __fd_set_count) }
#endif
}

Expand Down

0 comments on commit d658dc3

Please sign in to comment.