diff options
Diffstat (limited to 'tests/async/tnewasyncudp.nim')
-rw-r--r-- | tests/async/tnewasyncudp.nim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/async/tnewasyncudp.nim b/tests/async/tnewasyncudp.nim index e61f630e4..b442c0524 100644 --- a/tests/async/tnewasyncudp.nim +++ b/tests/async/tnewasyncudp.nim @@ -29,10 +29,7 @@ proc saveReceivedPort(port: int) = proc prepareAddress(intaddr: uint32, intport: uint16): ptr Sockaddr_in = result = cast[ptr Sockaddr_in](alloc0(sizeof(Sockaddr_in))) - when defined(windows): - result.sin_family = toInt(nativesockets.AF_INET).int16 - else: - result.sin_family = toInt(nativesockets.AF_INET) + result.sin_family = toInt(nativesockets.AF_INET).uint16 result.sin_port = nativesockets.htons(intport) result.sin_addr.s_addr = nativesockets.htonl(intaddr) |