Replace countup(x, y) with x .. y
This commit is contained in:
parent
f18b3af9d4
commit
cc28eef38e
35 changed files with 103 additions and 103 deletions
|
|
@ -510,7 +510,7 @@ proc genTry(c: PCtx; n: PNode; dest: var TDest) =
|
|||
var blen = len(it)
|
||||
# first opcExcept contains the end label of the 'except' block:
|
||||
let endExcept = c.xjmp(it, opcExcept, 0)
|
||||
for j in countup(0, blen - 2):
|
||||
for j in 0 .. blen - 2:
|
||||
assert(it.sons[j].kind == nkType)
|
||||
let typ = it.sons[j].typ.skipTypes(abstractPtrs-{tyTypeDesc})
|
||||
c.gABx(it, opcExcept, 0, c.genType(typ))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue