fix
This commit is contained in:
parent
ddea990a70
commit
c9a2acefc1
2 changed files with 2 additions and 2 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue