summary refs log tree commit diff stats
path: root/compiler/semexprs.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-03-26 20:31:18 +0100
committerAraq <rumpf_a@web.de>2014-03-26 20:31:18 +0100
commit78cc4de9a1d8db66d997e5ba02c6ce208637d70c (patch)
tree26a67c9765c2d5aa1c6021f2d0f7052329a2cba7 /compiler/semexprs.nim
parent9fdb1316868f71b99ab72de948a464456bcfe203 (diff)
downloadNim-78cc4de9a1d8db66d997e5ba02c6ce208637d70c.tar.gz
fixes #1025; don't know what this breaks
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r--compiler/semexprs.nim5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index 70c57b15e..1fd9075e8 100644
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -1481,9 +1481,8 @@ proc processQuotations(n: var PNode, op: string,
   elif n.kind == nkAccQuoted and op == "``":
     returnQuote n[0]
  
-  if not n.isAtom:
-    for i in 0 .. <n.len:
-      processQuotations(n.sons[i], op, quotes, ids)
+  for i in 0 .. <n.safeLen:
+    processQuotations(n.sons[i], op, quotes, ids)
 
 proc semQuoteAst(c: PContext, n: PNode): PNode =
   internalAssert n.len == 2 or n.len == 3