summary refs log tree commit diff stats
path: root/compiler/pretty.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/pretty.nim')
-rw-r--r--compiler/pretty.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/pretty.nim b/compiler/pretty.nim
index 85b138822..a59694d8f 100644
--- a/compiler/pretty.nim
+++ b/compiler/pretty.nim
@@ -46,7 +46,7 @@ proc loadFile(info: TLineInfo) =
 proc overwriteFiles*() =
   for i in 0 .. high(gSourceFiles):
     if not gSourceFiles[i].dirty: continue
-    let newFile = gSourceFiles[i].fullpath.changeFileExt(".pretty.nim")
+    let newFile = gSourceFiles[i].fullpath #.changeFileExt(".pretty.nim")
     try:
       var f = open(newFile, fmWrite)
       for line in gSourceFiles[i].lines:
@@ -167,7 +167,7 @@ proc checkUse(c: PGen; n: PNode) =
   let last = first+identLen(line, first)-1
   if differ(line, first, last, newName):
     # last-first+1 != newName.len or 
-    var x = line.subStr(0, first-1) & newName & line.substr(last+1)
+    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
       # becomes 'X = X'. We remove those lines: