diff options
Diffstat (limited to 'compiler/lowerings.nim')
-rw-r--r-- | compiler/lowerings.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/lowerings.nim b/compiler/lowerings.nim index 6a8eccb83..7da332335 100644 --- a/compiler/lowerings.nim +++ b/compiler/lowerings.nim @@ -441,7 +441,7 @@ proc newIntLit*(value: BiggestInt): PNode = result.typ = getSysType(tyInt) proc genHigh*(n: PNode): PNode = - if skipTypes(n.typ, abstractVar).kind in {tyArrayConstr, tyArray}: + if skipTypes(n.typ, abstractVar).kind == tyArray: result = newIntLit(lastOrd(skipTypes(n.typ, abstractVar))) else: result = newNodeI(nkCall, n.info, 2) |