Fix codegen problem with strict C++ compilers (#10639)
Since tyCString is convertible to a tyPointer we must be extra careful to emit a cast to (void*) in order to appease clang++. Reported by masnagam on the Nim forum.
This commit is contained in:
parent
cf5812aa9f
commit
1d1360496f
1 changed files with 1 additions and 1 deletions
|
|
@ -465,7 +465,7 @@ proc foldConv(n, a: PNode; g: ModuleGraph; check = false): PNode =
|
||||||
else:
|
else:
|
||||||
result = a
|
result = a
|
||||||
result.typ = n.typ
|
result.typ = n.typ
|
||||||
of tyOpenArray, tyVarargs, tyProc:
|
of tyOpenArray, tyVarargs, tyProc, tyPointer:
|
||||||
discard
|
discard
|
||||||
else:
|
else:
|
||||||
result = a
|
result = a
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue