Replace countup(x, y) with x .. y

This commit is contained in:
Clyybber 2019-05-07 12:37:28 +02:00
commit cc28eef38e
35 changed files with 103 additions and 103 deletions

View file

@ -209,7 +209,7 @@ proc processMagic(c: PContext, n: PNode, s: PSym) =
var v: string
if n.sons[1].kind == nkIdent: v = n.sons[1].ident.s
else: v = expectStrLit(c, n)
for m in countup(low(TMagic), high(TMagic)):
for m in low(TMagic) .. high(TMagic):
if substr($m, 1) == v:
s.magic = m
break