diff options
author | Dominik Picheta <dominikpicheta@gmail.com> | 2017-04-09 20:27:28 +0200 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@gmail.com> | 2017-04-09 20:27:28 +0200 |
commit | c9c64240d3b6a3e8ffa210ee4f76d89b60ae1b97 (patch) | |
tree | 3fc355287be3e8b73b96e47e399d343df80f1b37 /lib | |
parent | 88cb40cd31d3cf2ebaa2a1c284c335601208db0d (diff) | |
download | Nim-c9c64240d3b6a3e8ffa210ee4f76d89b60ae1b97.tar.gz |
Fixes ambiguity introduced by #5390.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/nativesockets.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/nativesockets.nim b/lib/pure/nativesockets.nim index 0a7ffb3b3..a9c72286d 100644 --- a/lib/pure/nativesockets.nim +++ b/lib/pure/nativesockets.nim @@ -239,7 +239,7 @@ template ntohl*(x: int32): untyped {.deprecated.} = ## **Warning**: This template is deprecated since 0.14.0, IPv4 ## addresses are now treated as unsigned integers. Please use the unsigned ## version of this template. - cast[int32](ntohl(cast[uint32](x))) + cast[int32](nativesockets.ntohl(cast[uint32](x))) proc ntohs*(x: uint16): uint16 = ## Converts 16-bit unsigned integers from network to host byte order. On @@ -255,7 +255,7 @@ template ntohs*(x: int16): untyped {.deprecated.} = ## **Warning**: This template is deprecated since 0.14.0, where port ## numbers became unsigned integers. Please use the unsigned version of ## this template. - cast[int16](ntohs(cast[uint16](x))) + cast[int16](nativesockets.ntohs(cast[uint16](x))) template htonl*(x: int32): untyped {.deprecated.} = ## Converts 32-bit integers from host to network byte order. On machines |