Skip to content

Commit

Permalink
Fix endianness in the test (#6715)
Browse files Browse the repository at this point in the history
  • Loading branch information
avsej authored and Varriount committed Nov 11, 2017
1 parent ae65368 commit bdd35c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/async/tnewasyncudp.nim
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ proc readMessages(server: AsyncFD) {.async.} =
size = 0
var grammString = $cstring(addr buffer)
if grammString.startswith("Message ") and
saddr.sin_addr.s_addr == 0x100007F:
saddr.sin_addr.s_addr == nativesockets.ntohl(INADDR_LOOPBACK.uint32):
await sendTo(server, addr grammString[0], len(grammString),
cast[ptr SockAddr](addr saddr), slen)
inc(msgCount)
Expand Down

0 comments on commit bdd35c9

Please sign in to comment.