summary refs log tree commit diff stats
path: root/compiler/guards.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/guards.nim')
-rw-r--r--compiler/guards.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/guards.nim b/compiler/guards.nim
index 4e887d3e3..b53365617 100644
--- a/compiler/guards.nim
+++ b/compiler/guards.nim
@@ -207,7 +207,7 @@ proc lowBound*(x: PNode): PNode =
 
 proc highBound*(x: PNode): PNode =
   let typ = x.typ.skipTypes(abstractInst)
-  result = if typ.kind in {tyArrayConstr, tyArray}:
+  result = if typ.kind == tyArray:
              nkIntLit.newIntNode(lastOrd(typ))
            elif typ.kind == tySequence and x.kind == nkSym and
                x.sym.kind == skConst: