This commit is contained in:
Araq
2014-08-08 09:55:19 +02:00
parent abf511245a
commit fd086abb43

View File

@@ -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)