summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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) =