diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-05-08 17:18:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-08 17:18:46 +0200 |
commit | 61380d0a070a4a691e820e18b25e9dd8fb420306 (patch) | |
tree | a786b6ba0f9e831fecfb75de2a5c3d097a24a962 /compiler/procfind.nim | |
parent | 8180d443b9938f135dd280bcd5e1727766cd7468 (diff) | |
parent | cc28eef38e601171644ffe1a2775744eaaca8123 (diff) | |
download | Nim-61380d0a070a4a691e820e18b25e9dd8fb420306.tar.gz |
Small cleanup (#11185)
* Remove mStaticTy and mTypeTy * Replace countup(x, y-1) with x ..< y * Replace countup(x, y) with x .. y
Diffstat (limited to 'compiler/procfind.nim')
-rw-r--r-- | compiler/procfind.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/procfind.nim b/compiler/procfind.nim index 3f47e7e8a..55c8bb78c 100644 --- a/compiler/procfind.nim +++ b/compiler/procfind.nim @@ -15,7 +15,7 @@ import proc equalGenericParams(procA, procB: PNode): bool = if sonsLen(procA) != sonsLen(procB): return false - for i in countup(0, sonsLen(procA) - 1): + for i in 0 ..< sonsLen(procA): if procA.sons[i].kind != nkSym: return false if procB.sons[i].kind != nkSym: @@ -98,7 +98,7 @@ when false: var length = sonsLen(child) result = false if length == sonsLen(parent): - for i in countup(1, length - 1): + for i in 1 ..< length: var m = child.sons[i].sym var n = parent.sons[i].sym assert((m.kind == skParam) and (n.kind == skParam)) |