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:
|
||||
result = newNode(nkBracket)
|
||||
result.typ = typ
|
||||
newSeq(result.sons, lengthOrd(conf, typ).int)
|
||||
newSeq(result.sons, lengthOrd(conf, typ).toInt)
|
||||
else:
|
||||
result = n
|
||||
if result.kind != nkBracket:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue