Skip to content

Commit

Permalink
Update net.nim (#19327) [backport]
Browse files Browse the repository at this point in the history
(cherry picked from commit 5ec8b60)
  • Loading branch information
rockcavera authored and narimiran committed Jan 11, 2022
1 parent 984691b commit 30737b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/net.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ proc recvFrom*(socket: Socket, data: var string, length: int,
## used. Therefore if `socket` contains something in its buffer this
## function will make no effort to return it.
template adaptRecvFromToDomain(domain: Domain) =
var addrLen = sizeof(sockAddress).SockLen
var addrLen = SockLen(sizeof(sockAddress))
result = recvfrom(socket.fd, cstring(data), length.cint, flags.cint,
cast[ptr SockAddr](addr(sockAddress)), addr(addrLen))

Expand Down

0 comments on commit 30737b3

Please sign in to comment.