diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-07-22 15:42:09 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-07-22 15:42:09 +0200 |
commit | cb0d65280ff77efb751cf24d5e6dd318d12de94a (patch) | |
tree | ec75c9c68ba3cbad5e6f1d52075a23a5bb8c5e86 | |
parent | e968fbb7dd297c1278d8a2b191c694c7451c0e15 (diff) | |
download | Nim-cb0d65280ff77efb751cf24d5e6dd318d12de94a.tar.gz |
fixes #6131
-rw-r--r-- | lib/system/cellsets.nim | 4 | ||||
-rw-r--r-- | lib/system/sysio.nim | 4 | ||||
-rw-r--r-- | lib/system/widestrs.nim | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/system/cellsets.nim b/lib/system/cellsets.nim index 776a2b7ec..ab6191aab 100644 --- a/lib/system/cellsets.nim +++ b/lib/system/cellsets.nim @@ -30,13 +30,13 @@ type key: ByteAddress # start address at bit 0 bits: array[BitIndex, int] # a bit vector - PPageDescArray = ptr array[0..1000_000, PPageDesc] + PPageDescArray = ptr array[ArrayDummySize, PPageDesc] CellSet {.final, pure.} = object counter, max: int head: PPageDesc data: PPageDescArray - PCellArray = ptr array[0..100_000_000, PCell] + PCellArray = ptr array[ArrayDummySize, PCell] CellSeq {.final, pure.} = object len, cap: int d: PCellArray 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) = diff --git a/lib/system/widestrs.nim b/lib/system/widestrs.nim index dda547abe..d11ed7d1b 100644 --- a/lib/system/widestrs.nim +++ b/lib/system/widestrs.nim @@ -15,7 +15,7 @@ when not declared(NimString): type Utf16Char* = distinct int16 - WideCString* = ref array[0.. 1_000_000, Utf16Char] + WideCString* = ref array[ArrayDummySize, Utf16Char] {.deprecated: [TUtf16Char: Utf16Char].} proc len*(w: WideCString): int = |