diff options
author | Araq <rumpf_a@web.de> | 2013-11-19 14:06:39 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-11-19 14:06:39 +0100 |
commit | 619356dd0886e764945faadccc62281ff6b85aa5 (patch) | |
tree | d9aaeb97ee2365d89eff0df04cbd52174b0e0fd0 /lib | |
parent | fb810e25c46de6fcbce20322bdf6dbbc88f3ba6f (diff) | |
download | Nim-619356dd0886e764945faadccc62281ff6b85aa5.tar.gz |
bugfix: '$' for TPort
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/sockets.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pure/sockets.nim b/lib/pure/sockets.nim index 99117ea4e..66bb1e6a9 100644 --- a/lib/pure/sockets.nim +++ b/lib/pure/sockets.nim @@ -154,9 +154,8 @@ proc newTSocket(fd: TSocketHandle, isBuff: bool): TSocket = proc `==`*(a, b: TPort): bool {.borrow.} ## ``==`` for ports. -proc `$`*(p: TPort): string = +proc `$`*(p: TPort): string {.borrow.} ## returns the port number as a string - result = $ze(int16(p)) proc ntohl*(x: int32): int32 = ## Converts 32-bit integers from network to host byte order. |