This commit is contained in:
Arne Döring
2017-06-06 22:33:52 +02:00
parent ddea990a70
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.} =
var buf: array[60, char]
discard c_sprintf(result[0].addr, "%p", x)
discard c_sprintf(buf.cstring, "%p", x)
result = $buf.cstring
proc `$`(x: uint64): string =

View File

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