Skip to content

Commit

Permalink
Fix endianness in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
avsej committed Nov 10, 2017
1 parent 46275f6 commit 75be459
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 75be459

Please sign in to comment.