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/rodimpl.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/rodimpl.nim') diff --git a/compiler/rodimpl.nim b/compiler/rodimpl.nim index 147e8c3d6..7a2453caf 100644 --- a/compiler/rodimpl.nim +++ b/compiler/rodimpl.nim @@ -154,7 +154,7 @@ proc encodeNode(g: ModuleGraph; fInfo: TLineInfo, n: PNode, encodeVInt(n.sym.id, result) pushSym(w, n.sym) else: - for i in countup(0, sonsLen(n) - 1): + for i in 0 ..< sonsLen(n): encodeNode(g, n.info, n.sons[i], result) add(result, ')') @@ -248,7 +248,7 @@ proc encodeType(g: ModuleGraph, t: PType, result: var string) = add(result, '\21') encodeVInt(t.typeInst.uniqueId, result) pushType(w, t.typeInst) - for i in countup(0, sonsLen(t) - 1): + for i in 0 ..< sonsLen(t): if t.sons[i] == nil: add(result, "^()") else: -- cgit 1.4.1-2-gfad0