mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
fixes #1456
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user