summary refs log tree commit diff stats
path: root/compiler/ast.nim
diff options
context:
space:
mode:
authorcooldome <ariabushenko@bk.ru>2018-04-26 23:56:43 +0100
committercooldome <ariabushenko@bk.ru>2018-04-26 23:56:43 +0100
commite2a4a43acc98743d0d2d4db1f9478f2582507dcf (patch)
tree1d011264c5ffcb5fd06c8331644ce3ae1ec62ffa /compiler/ast.nim
parenta95316f78bf3a785c441c5832b5b11c262ef70ce (diff)
parent397e1731393be598991df302006ec3634baa3583 (diff)
downloadNim-e2a4a43acc98743d0d2d4db1f9478f2582507dcf.tar.gz
Merge branch 'devel' into range_float_type
Diffstat (limited to 'compiler/ast.nim')
-rw-r--r--compiler/ast.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim
index 2c8f686eb..b8202abe6 100644
--- a/compiler/ast.nim
+++ b/compiler/ast.nim
@@ -1622,7 +1622,7 @@ iterator items*(n: PNode): PNode =
   for i in 0..<n.safeLen: yield n.sons[i]
 
 iterator pairs*(n: PNode): tuple[i: int, n: PNode] =
-  for i in 0..<n.len: yield (i, n.sons[i])
+  for i in 0..<n.safeLen: yield (i, n.sons[i])
 
 proc isAtom*(n: PNode): bool {.inline.} =
   result = n.kind >= nkNone and n.kind <= nkNilLit