diff options
author | Araq <rumpf_a@web.de> | 2012-07-05 00:03:33 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-07-05 00:03:33 +0200 |
commit | 36247e0947699a56d5bc51d48188b6dda1815587 (patch) | |
tree | af837b557356d4495ce93d5fe735c9ccab169e2e /lib/system/sysio.nim | |
parent | 8ef48a34e5916deccd58a312228c7d2efe39d170 (diff) | |
download | Nim-36247e0947699a56d5bc51d48188b6dda1815587.tar.gz |
added devel/logging; weakrefs test; next steps for proper unsigned support
Diffstat (limited to 'lib/system/sysio.nim')
-rwxr-xr-x | lib/system/sysio.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/sysio.nim b/lib/system/sysio.nim index 15f87896a..ac0880f79 100755 --- a/lib/system/sysio.nim +++ b/lib/system/sysio.nim @@ -199,7 +199,7 @@ proc Open(f: var TFile, filename: string, var p: pointer = fopen(filename, FormatOpen[mode]) result = (p != nil) f = cast[TFile](p) - if bufSize > 0 and bufSize <= high(cint): + if bufSize > 0 and bufSize <= high(cint).int: if setvbuf(f, nil, IOFBF, bufSize.cint) != 0'i32: raise newException(EOutOfMemory, "out of memory") elif bufSize == 0: |