Skip to content

Commit

Permalink
fixes #9754 [backport] (#15342)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8b66412)
  • Loading branch information
Araq authored and narimiran committed Sep 21, 2020
1 parent 183f876 commit 2624de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/typeinfo.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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]]) =
Expand Down

0 comments on commit 2624de0

Please sign in to comment.