mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 05:20:31 +00:00
fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user