diff options
author | Zahary Karadjov <zahary@gmail.com> | 2012-10-03 21:11:41 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2012-10-04 15:37:26 +0300 |
commit | d9d82fb0af8688e7c847bb7b0c3b2e38f7c8a735 (patch) | |
tree | 2e547df69eead6665ca4127f63872f0bbd67f275 /lib/pure/sockets.nim | |
parent | a6d5707faff21722f22f91c56704c44fc03d47f6 (diff) | |
download | Nim-d9d82fb0af8688e7c847bb7b0c3b2e38f7c8a735.tar.gz |
syntax compatibility between do blocks and stmt blocks
See the section `do notation` in the manual for more info. * nkMacroStmt has been removed Macro statements are now mapped to regular nkCall nodes. The support for additional clauses (such as else, except, of, etc) have been restored - they will now appear as additional arguments for the nkCall node (as nkElse, nkExcept, etc nodes) * fixed some regressions in the `is` operator and semCompiles
Diffstat (limited to 'lib/pure/sockets.nim')
-rwxr-xr-x | 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 fb04d6754..4782ddd2e 100755 --- a/lib/pure/sockets.nim +++ b/lib/pure/sockets.nim @@ -940,7 +940,7 @@ proc readIntoBuf(socket: TSocket, flags: int32): int = socket.currPos = 0 template retRead(flags, readBytes: int) = - let res = socket.readIntoBuf(flags) + let res = socket.readIntoBuf(flags.int32) if res <= 0: if readBytes > 0: return readBytes |