fixes #1445
This commit is contained in:
parent
4708cebaa2
commit
5a2bea7408
1 changed files with 0 additions and 4 deletions
|
|
@ -89,14 +89,10 @@ proc genericAssignAux(dest, src: pointer, mt: PNimType, shallow: bool) =
|
||||||
copyMem(dest, src, mt.size) # copy raw bits
|
copyMem(dest, src, mt.size) # copy raw bits
|
||||||
|
|
||||||
proc genericAssign(dest, src: pointer, mt: PNimType) {.compilerProc.} =
|
proc genericAssign(dest, src: pointer, mt: PNimType) {.compilerProc.} =
|
||||||
GC_disable()
|
|
||||||
genericAssignAux(dest, src, mt, false)
|
genericAssignAux(dest, src, mt, false)
|
||||||
GC_enable()
|
|
||||||
|
|
||||||
proc genericShallowAssign(dest, src: pointer, mt: PNimType) {.compilerProc.} =
|
proc genericShallowAssign(dest, src: pointer, mt: PNimType) {.compilerProc.} =
|
||||||
GC_disable()
|
|
||||||
genericAssignAux(dest, src, mt, true)
|
genericAssignAux(dest, src, mt, true)
|
||||||
GC_enable()
|
|
||||||
|
|
||||||
when false:
|
when false:
|
||||||
proc debugNimType(t: PNimType) =
|
proc debugNimType(t: PNimType) =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue