summary refs log tree commit diff stats
path: root/lib/system/sysio.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-07-22 15:42:09 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-07-22 15:42:09 +0200
commitcb0d65280ff77efb751cf24d5e6dd318d12de94a (patch)
treeec75c9c68ba3cbad5e6f1d52075a23a5bb8c5e86 /lib/system/sysio.nim
parente968fbb7dd297c1278d8a2b191c694c7451c0e15 (diff)
downloadNim-cb0d65280ff77efb751cf24d5e6dd318d12de94a.tar.gz
fixes #6131
Diffstat (limited to 'lib/system/sysio.nim')
-rw-r--r--lib/system/sysio.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/sysio.nim b/lib/system/sysio.nim
index 7444661e3..c9049a134 100644
--- a/lib/system/sysio.nim
+++ b/lib/system/sysio.nim
@@ -86,10 +86,10 @@ proc writeBuffer(f: File, buffer: pointer, len: Natural): int =
   checkErr(f)
 
 proc writeBytes(f: File, a: openArray[int8|uint8], start, len: Natural): int =
-  var x = cast[ptr array[0..1000_000_000, int8]](a)
+  var x = cast[ptr array[ArrayDummySize, int8]](a)
   result = writeBuffer(f, addr(x[start]), len)
 proc writeChars(f: File, a: openArray[char], start, len: Natural): int =
-  var x = cast[ptr array[0..1000_000_000, int8]](a)
+  var x = cast[ptr array[ArrayDummySize, int8]](a)
   result = writeBuffer(f, addr(x[start]), len)
 
 proc write(f: File, s: string) =