mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
fixes size computations for 'dumpNumberOfInstances'
This commit is contained in:
@@ -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) =
|
||||
|
||||
Reference in New Issue
Block a user