Replace countup(x, y-1) with x ..< y
This commit is contained in:
parent
9ffab44c35
commit
f18b3af9d4
58 changed files with 312 additions and 312 deletions
|
|
@ -235,7 +235,7 @@ proc newContext*(graph: ModuleGraph; module: PSym): PContext =
|
|||
|
||||
proc inclSym(sq: var seq[PSym], s: PSym) =
|
||||
var L = len(sq)
|
||||
for i in countup(0, L - 1):
|
||||
for i in 0 ..< L:
|
||||
if sq[i].id == s.id: return
|
||||
setLen(sq, L + 1)
|
||||
sq[L] = s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue