summary refs log tree commit diff stats
path: root/lib/system/mmdisp.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system/mmdisp.nim')
-rwxr-xr-xlib/system/mmdisp.nim4
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)