mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 04:27:44 +00:00
Make repr use 'ptr' for ptr types instead of 'ref' (#11626)
(cherry picked from commit a5686961bd)
This commit is contained in:
committed by
narimiran
parent
d7ea8588c5
commit
281baadb33
@@ -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