From f18b3af9d4a6393ba988cdb17d8f0861b1c75c7d Mon Sep 17 00:00:00 2001 From: Clyybber Date: Tue, 7 May 2019 12:04:00 +0200 Subject: Replace countup(x, y-1) with x ..< y --- compiler/semdata.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/semdata.nim') diff --git a/compiler/semdata.nim b/compiler/semdata.nim index 4b269dd4a..637a13101 100644 --- a/compiler/semdata.nim +++ b/compiler/semdata.nim @@ -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 -- cgit 1.4.1-2-gfad0