Skip to content

Commit

Permalink
Update TCPSocket.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhanatM authored Oct 6, 2022
1 parent 287c134 commit cd39d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/TCPSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public final class TCPSocket {
let size = socklen_t(MemoryLayout<sockaddr_in6>.size)
// connect to the host and port
let connectResult = withUnsafePointer(to: &address) { pointer in
return pointer.withMemoryRebound(to: sockaddr.self, capacity: Int(size)) { pointer in
return pointer.withMemoryRebound(to: sockaddr.self, capacity: Int32(size)) { pointer in
return SystemLibrary.connect(fileDescriptor, pointer, size)
}
}
Expand Down

0 comments on commit cd39d55

Please sign in to comment.