Make repr use 'ptr' for ptr types instead of 'ref' (#11626)

This commit is contained in:
Ico Doornekamp
2019-07-01 11:59:27 +02:00
committed by Andreas Rumpf
parent d7a7662a7f
commit a5686961bd

View File

@@ -230,7 +230,8 @@ when not defined(useNimRtl):
var cell = cast[PCell](p)
else:
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:
# only the address is shown:
incl(cl.marked, cell)