summary refs log tree commit diff stats
path: root/lib/system/sysio.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-07-05 00:03:33 +0200
committerAraq <rumpf_a@web.de>2012-07-05 00:03:33 +0200
commit36247e0947699a56d5bc51d48188b6dda1815587 (patch)
treeaf837b557356d4495ce93d5fe735c9ccab169e2e /lib/system/sysio.nim
parent8ef48a34e5916deccd58a312228c7d2efe39d170 (diff)
downloadNim-36247e0947699a56d5bc51d48188b6dda1815587.tar.gz
added devel/logging; weakrefs test; next steps for proper unsigned support
Diffstat (limited to 'lib/system/sysio.nim')
-rwxr-xr-xlib/system/sysio.nim2
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: