Make repr use 'ptr' for ptr types instead of 'ref' (#11626)
This commit is contained in:
parent
d7a7662a7f
commit
a5686961bd
1 changed files with 2 additions and 1 deletions
|
|
@ -230,7 +230,8 @@ when not defined(useNimRtl):
|
||||||
var cell = cast[PCell](p)
|
var cell = cast[PCell](p)
|
||||||
else:
|
else:
|
||||||
var cell = usrToCell(p)
|
var cell = usrToCell(p)
|
||||||
add result, "ref " & reprPointer(p)
|
add result, if typ.kind == tyPtr: "ptr " else: "ref "
|
||||||
|
add result, reprPointer(p)
|
||||||
if cell notin cl.marked:
|
if cell notin cl.marked:
|
||||||
# only the address is shown:
|
# only the address is shown:
|
||||||
incl(cl.marked, cell)
|
incl(cl.marked, cell)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue