diff options
author | Araq <rumpf_a@web.de> | 2012-02-10 00:50:19 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-02-10 00:50:19 +0100 |
commit | 74498d616eaae30605d7323254c46f5af4ae253c (patch) | |
tree | 633af2fce8fa97a8e56d4d4356093f2bdfdcfe8a /lib/system/mmdisp.nim | |
parent | 6b684f4f98437b69eca0ed8b402488c541561bf1 (diff) | |
download | Nim-74498d616eaae30605d7323254c46f5af4ae253c.tar.gz |
fixes tests for 'system.shallow'
Diffstat (limited to 'lib/system/mmdisp.nim')
-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) |