Replace countup(x, y-1) with x ..< y

This commit is contained in:
Clyybber 2019-05-07 12:04:00 +02:00
commit f18b3af9d4
58 changed files with 312 additions and 312 deletions

View file

@ -443,7 +443,7 @@ proc sameTree*(a, b: PNode): bool =
of nkEmpty, nkNilLit: result = true
else:
if sonsLen(a) == sonsLen(b):
for i in countup(0, sonsLen(a) - 1):
for i in 0 ..< sonsLen(a):
if not sameTree(a.sons[i], b.sons[i]): return
result = true