summary refs log tree commit diff stats
path: root/compiler/pretty.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-08-03 21:14:57 +0200
committerAraq <rumpf_a@web.de>2013-08-03 21:14:57 +0200
commit30bb68d48a90e45b83716ab81c9ecccdb425c781 (patch)
treeb9af06a619fdaa5b6d3e9f9cdfac9bbf04d661fa /compiler/pretty.nim
parentec86d5db0f6a150db4db804876f2241451a07ffe (diff)
downloadNim-30bb68d48a90e45b83716ab81c9ecccdb425c781.tar.gz
new VM: next steps
Diffstat (limited to 'compiler/pretty.nim')
-rw-r--r--compiler/pretty.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/pretty.nim b/compiler/pretty.nim
index d86675412..4545e1c55 100644
--- a/compiler/pretty.nim
+++ b/compiler/pretty.nim
@@ -144,7 +144,8 @@ proc processSym(c: PPassContext, n: PNode): PNode =
         cannotRename.incl(s.id)
         return
     let last = first+identLen(line, first)-1
-    if last-first+1 != newName.len or differ(line, first, last, newName):
+    if differ(line, first, last, newName):
+      # last-first+1 != newName.len or 
       var x = line.subStr(0, first-1) & newName & line.substr(last+1)
       when removeTP:
         # the WinAPI module is full of 'TX = X' which after the substitution