fix compiletimeFFI (#11991)
This commit is contained in:
parent
5304b16a55
commit
2b2efe3dbe
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@ proc unpackArray(conf: ConfigRef, x: pointer, typ: PType, n: PNode): PNode =
|
||||||
if n.isNil:
|
if n.isNil:
|
||||||
result = newNode(nkBracket)
|
result = newNode(nkBracket)
|
||||||
result.typ = typ
|
result.typ = typ
|
||||||
newSeq(result.sons, lengthOrd(conf, typ).int)
|
newSeq(result.sons, lengthOrd(conf, typ).toInt)
|
||||||
else:
|
else:
|
||||||
result = n
|
result = n
|
||||||
if result.kind != nkBracket:
|
if result.kind != nkBracket:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue