diff options
author | Josep Sanjuas <jsanjuas@gmail.com> | 2016-03-27 22:56:05 +0200 |
---|---|---|
committer | Josep Sanjuas <jsanjuas@gmail.com> | 2016-03-27 22:56:44 +0200 |
commit | 5a582a0d9c497b9a5d3efcb48954f06c187f8c0a (patch) | |
tree | 9e51f2ff19616680752c6f91679233f7eca4beb0 /lib/posix/posix.nim | |
parent | a88584dde1d0cc075a3518124306e0c9b29ca01c (diff) | |
download | Nim-5a582a0d9c497b9a5d3efcb48954f06c187f8c0a.tar.gz |
Define ports as uint16s to fix #3484
Diffstat (limited to 'lib/posix/posix.nim')
-rw-r--r-- | lib/posix/posix.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index 40b48f992..4c7b817cb 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -486,11 +486,11 @@ type l_onoff*: cint ## Indicates whether linger option is enabled. l_linger*: cint ## Linger time, in seconds. - InPort* = int16 ## unsigned! - InAddrScalar* = int32 ## unsigned! + InPort* = uint16 + InAddrScalar* = uint32 InAddrT* {.importc: "in_addr_t", pure, final, - header: "<netinet/in.h>".} = int32 ## unsigned! + header: "<netinet/in.h>".} = uint32 InAddr* {.importc: "struct in_addr", pure, final, header: "<netinet/in.h>".} = object ## struct in_addr |