diff options
author | Araq <rumpf_a@web.de> | 2013-05-15 00:28:55 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-05-15 00:28:55 +0200 |
commit | 886a1ab15d1a94eb5a545b562fb57d7496c3e1d2 (patch) | |
tree | 84c6002a27c65420ac78b3db8e35df142c87745a /lib/pure/sockets.nim | |
parent | 635ad3b336bfcf89c3bb611156fd68f3cc953c30 (diff) | |
download | Nim-886a1ab15d1a94eb5a545b562fb57d7496c3e1d2.tar.gz |
'bind' default for clean templates
Diffstat (limited to 'lib/pure/sockets.nim')
-rw-r--r-- | lib/pure/sockets.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/sockets.nim b/lib/pure/sockets.nim index 2d602c86e..17e4d3118 100644 --- a/lib/pure/sockets.nim +++ b/lib/pure/sockets.nim @@ -1028,7 +1028,7 @@ proc readIntoBuf(socket: TSocket, flags: int32): int = socket.bufLen = result socket.currPos = 0 -template retRead(flags, readBytes: int) = +template retRead(flags, readBytes: int) {.dirty.} = let res = socket.readIntoBuf(flags.int32) if res <= 0: if readBytes > 0: |