diff options
Diffstat (limited to 'lib/system')
-rwxr-xr-x | lib/system/mmdisp.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/mmdisp.nim b/lib/system/mmdisp.nim index 1561e1b27..e8ad23970 100755 --- a/lib/system/mmdisp.nim +++ b/lib/system/mmdisp.nim @@ -152,7 +152,7 @@ when defined(boehmgc): proc newSeq(typ: PNimType, len: int): pointer {.compilerproc.} = result = newObj(typ, addInt(mulInt(len, typ.base.size), GenericSeqSize)) cast[PGenericSeq](result).len = len - cast[PGenericSeq](result).space = len + cast[PGenericSeq](result).reserved = len proc growObj(old: pointer, newsize: int): pointer = result = realloc(old, newsize) @@ -208,7 +208,7 @@ elif defined(nogc): proc newSeq(typ: PNimType, len: int): pointer {.compilerproc.} = result = newObj(typ, addInt(mulInt(len, typ.base.size), GenericSeqSize)) cast[PGenericSeq](result).len = len - cast[PGenericSeq](result).space = len + cast[PGenericSeq](result).reserved = len proc growObj(old: pointer, newsize: int): pointer = result = realloc(old, newsize) |