diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-07-06 13:00:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-06 13:00:29 +0200 |
commit | 02b9af2f7537a5ced5ad3b1bfac14eb036b9a678 (patch) | |
tree | d0d7e6cafb2995c20f508dd171febe7b69fb1dc3 /tests/async/tnewasyncudp.nim | |
parent | 25cd8a5490e94d79eaafaaa19f198d0771d9b40c (diff) | |
download | Nim-02b9af2f7537a5ced5ad3b1bfac14eb036b9a678.tar.gz |
ABI fixes for OSX/BSD; fixes #6860 (#11666)
Diffstat (limited to 'tests/async/tnewasyncudp.nim')
-rw-r--r-- | tests/async/tnewasyncudp.nim | 2 |
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) |