fixes #9754 [backport] (#15342)

(cherry picked from commit 8b66412a8b)
This commit is contained in:
Andreas Rumpf
2020-09-16 19:41:14 +02:00
committed by narimiran
parent 183f876bd1
commit 2624de0588

View File

@@ -271,7 +271,7 @@ proc setPointer*(x: Any, y: pointer) =
## ``akPointer``, ``akSequence``.
assert x.rawType.kind in {tyString, tyCString, tyRef, tyPtr, tyPointer,
tySequence, tyProc}
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]]) =