summary refs log tree commit diff stats
path: root/tests/async/tnewasyncudp.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-07-06 13:00:29 +0200
committerGitHub <noreply@github.com>2019-07-06 13:00:29 +0200
commit02b9af2f7537a5ced5ad3b1bfac14eb036b9a678 (patch)
treed0d7e6cafb2995c20f508dd171febe7b69fb1dc3 /tests/async/tnewasyncudp.nim
parent25cd8a5490e94d79eaafaaa19f198d0771d9b40c (diff)
downloadNim-02b9af2f7537a5ced5ad3b1bfac14eb036b9a678.tar.gz
ABI fixes for OSX/BSD; fixes #6860 (#11666)
Diffstat (limited to 'tests/async/tnewasyncudp.nim')
-rw-r--r--tests/async/tnewasyncudp.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/async/tnewasyncudp.nim b/tests/async/tnewasyncudp.nim
index 7dbd5a3d0..feab46319 100644
--- a/tests/async/tnewasyncudp.nim
+++ b/tests/async/tnewasyncudp.nim
@@ -28,7 +28,7 @@ proc saveReceivedPort(port: int) =
 
 proc prepareAddress(intaddr: uint32, intport: uint16): ptr Sockaddr_in =
   result = cast[ptr Sockaddr_in](alloc0(sizeof(Sockaddr_in)))
-  result.sin_family = toInt(nativesockets.AF_INET).uint16
+  result.sin_family = typeof(result.sin_family)(toInt(nativesockets.AF_INET))
   result.sin_port = nativesockets.htons(intport)
   result.sin_addr.s_addr = nativesockets.htonl(intaddr)