Replace countup(x, y) with x .. y
This commit is contained in:
parent
f18b3af9d4
commit
cc28eef38e
35 changed files with 103 additions and 103 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue