Skip to content

Commit

Permalink
fixes #9754 [backport] (#15342)
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq authored Sep 16, 2020
1 parent 341be0b commit 8b66412
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/core/typeinfo.nim
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,7 @@ proc setPointer*(x: Any, y: pointer) =
## ``akString``, ``akCString``, ``akProc``, ``akRef``, ``akPtr``,
## ``akPointer``, ``akSequence``.
assert x.rawType.kind in pointerLike
when defined(gcDestructors):
genericAssign(x.value, y, x.rawType)
else:
cast[ppointer](x.value)[] = y
genericAssign(x.value, y, x.rawType)

proc fieldsAux(p: pointer, n: ptr TNimNode,
ret: var seq[tuple[name: cstring, any: Any]]) =
Expand Down

0 comments on commit 8b66412

Please sign in to comment.