summary refs log tree commit diff stats
path: root/compiler/dfa.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/dfa.nim')
-rw-r--r--compiler/dfa.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/dfa.nim b/compiler/dfa.nim
index d36427098..513fd0a16 100644
--- a/compiler/dfa.nim
+++ b/compiler/dfa.nim
@@ -441,7 +441,7 @@ proc genIf(c: var Con, n: PNode) =
   ]#
   let oldLen = c.forks.len
   var endings: seq[TPosition] = @[]
-  for i in countup(0, len(n) - 1):
+  for i in 0 ..< len(n):
     var it = n.sons[i]
     c.gen(it.sons[0])
     if it.len == 2: