fixes #1456
This commit is contained in:
parent
abf511245a
commit
fd086abb43
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ proc genericDeepCopyAux(dest, src: pointer, mt: PNimType) =
|
|||
genericDeepCopyAux(z, s2, realType.base)
|
||||
x.typ = realType
|
||||
else:
|
||||
let realType = x.typ
|
||||
let realType = mt
|
||||
let z = newObj(realType, realType.base.size)
|
||||
unsureAsgnRef(cast[PPointer](dest), z)
|
||||
genericDeepCopyAux(z, s2, realType.base)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue