summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-01-19 16:32:48 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-01-19 16:32:48 +0100
commit00295366b55bbf9001c8d8540ff541daa8a0fa8c (patch)
tree8db984c6af8d7dcff75acb17b727c1c17c5741c2
parent0b52466bb83a747ee7c3325f20b741ad243c0c6a (diff)
downloadNim-00295366b55bbf9001c8d8540ff541daa8a0fa8c.tar.gz
fixes size computations for 'dumpNumberOfInstances'
-rw-r--r--lib/system/gc_common.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/gc_common.nim b/lib/system/gc_common.nim
index d33e271ce..234b2c18a 100644
--- a/lib/system/gc_common.nim
+++ b/lib/system/gc_common.nim
@@ -67,7 +67,7 @@ template decTypeSize(cell, t) =
       let size = addInt(mulInt(len, base), GenericSeqSize)
       dec t.sizes, size+sizeof(Cell)
     else:
-      dec t.sizes, t.size+sizeof(Cell)
+      dec t.sizes, t.base.size+sizeof(Cell)
     dec t.instances
 
 template incTypeSize(typ, size) =