diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/astalgo.nim | 4 | ||||
-rw-r--r-- | compiler/cgen.nim | 2 | ||||
-rw-r--r-- | compiler/dfa.nim | 2 | ||||
-rw-r--r-- | compiler/ndi.nim | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim index 280022780..c1df74a3f 100644 --- a/compiler/astalgo.nim +++ b/compiler/astalgo.nim @@ -425,7 +425,7 @@ proc value(this: var DebugPrinter; value: string) = proc value(this: var DebugPrinter; value: BiggestInt) = if this.useColor: this.res.add numberStyle - this.res.add value + this.res.addInt value if this.useColor: this.res.add resetStyle @@ -460,7 +460,7 @@ template earlyExit(this: var DebugPrinter; n: PType | PNode | PSym) = if this.useColor: this.res.add backrefStyle this.res.add "<defined " - this.res.add(this.currentLine - index) + this.res.addInt(this.currentLine - index) this.res.add " lines upwards>" if this.useColor: this.res.add resetStyle diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 1f4980385..0585a2be0 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -111,7 +111,7 @@ proc cgFormatValue(result: var string; value: string): void = result.add value proc cgFormatValue(result: var string; value: BiggestInt): void = - result.add value + result.addInt value # TODO: please document macro ropecg(m: BModule, frmt: static[FormatStr], args: untyped): Rope = diff --git a/compiler/dfa.nim b/compiler/dfa.nim index 513fd0a16..755e21cb7 100644 --- a/compiler/dfa.nim +++ b/compiler/dfa.nim @@ -82,7 +82,7 @@ proc codeListing(c: ControlFlowGraph, result: var string, start=0; last = -1) = result.add renderTree(c[i].n) of goto, fork, join: result.add "L" - result.add c[i].dest+i + result.addInt c[i].dest+i result.add("\t#") result.add(debugInfo(c[i].n.info)) result.add("\n") diff --git a/compiler/ndi.nim b/compiler/ndi.nim index f672b1b76..41f04cf0d 100644 --- a/compiler/ndi.nim +++ b/compiler/ndi.nim @@ -20,9 +20,9 @@ type proc doWrite(f: var NdiFile; s: PSym; conf: ConfigRef) = f.buf.setLen 0 - f.buf.add s.info.line.int + f.buf.addInt s.info.line.int f.buf.add "\t" - f.buf.add s.info.col.int + f.buf.addInt s.info.col.int f.f.write(s.name.s, "\t") f.f.writeRope(s.loc.r) f.f.writeLine("\t", toFullPath(conf, s.info), "\t", f.buf) |