This commit is contained in:
Arne Döring 2017-06-06 22:33:52 +02:00
commit c9a2acefc1
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ proc reprFloat(x: float): string {.compilerproc.} = return $x
proc reprPointer(x: pointer): string {.compilerproc.} = proc reprPointer(x: pointer): string {.compilerproc.} =
var buf: array[60, char] var buf: array[60, char]
discard c_sprintf(result[0].addr, "%p", x) discard c_sprintf(buf.cstring, "%p", x)
result = $buf.cstring result = $buf.cstring
proc `$`(x: uint64): string = proc `$`(x: uint64): string =

View file

@ -31,7 +31,7 @@ type
of nkList: sons: seq[PCaseNode] of nkList: sons: seq[PCaseNode]
else: unused: seq[string] else: unused: seq[string]
TIdObj* = object of TObject TIdObj* = object of RootObj
id*: int # unique id; use this for comparisons and not the pointers id*: int # unique id; use this for comparisons and not the pointers
PIdObj* = ref TIdObj PIdObj* = ref TIdObj