mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
Make repr use 'ptr' for ptr types instead of 'ref' (#11626)
This commit is contained in:
committed by
Andreas Rumpf
parent
d7a7662a7f
commit
a5686961bd
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user