This commit is contained in:
Andreas Rumpf
2017-07-22 15:42:09 +02:00
parent e968fbb7dd
commit cb0d65280f
3 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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) =

View File

@@ -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 =