This commit is contained in:
Andreas Rumpf 2017-01-19 07:11:09 +01:00
commit 249a352c6b

View file

@ -220,7 +220,7 @@ proc getIntervalType*(m: TMagic, n: PNode): PType =
of mModU: of mModU:
let a = n.sons[1] let a = n.sons[1]
let b = n.sons[2] let b = n.sons[2]
if a.kind in ordIntLit: if b.kind in ordIntLit:
if b.intVal >= 0: if b.intVal >= 0:
result = makeRange(a.typ, 0, b.intVal-1) result = makeRange(a.typ, 0, b.intVal-1)
else: else: