diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2019-08-21 00:28:16 -0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-08-21 09:28:16 +0200 |
commit | 2b2efe3dbe4e48843a923bcb7f55b1ed5d18d8b3 (patch) | |
tree | 7f20998a1804d2d11e91f659781cb99477f14f4e /compiler/evalffi.nim | |
parent | 5304b16a55e7d7c1ec66a4ba5abe48651ba0eae1 (diff) | |
download | Nim-2b2efe3dbe4e48843a923bcb7f55b1ed5d18d8b3.tar.gz |
fix compiletimeFFI (#11991)
Diffstat (limited to 'compiler/evalffi.nim')
-rw-r--r-- | compiler/evalffi.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/evalffi.nim b/compiler/evalffi.nim index ae48c4a95..b1decbc82 100644 --- a/compiler/evalffi.nim +++ b/compiler/evalffi.nim @@ -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: |