diff options
author | Ico Doornekamp <ico@pruts.nl> | 2019-07-01 11:59:27 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-07-01 11:59:27 +0200 |
commit | a5686961bda5ecaa36d45bb2f95701977d62df4d (patch) | |
tree | c232bc05c8ef62b0c46f3887af0082b41b27610a /lib/system | |
parent | d7a7662a7fa24a05f7b99b21969664d027e0fe53 (diff) | |
download | Nim-a5686961bda5ecaa36d45bb2f95701977d62df4d.tar.gz |
Make repr use 'ptr' for ptr types instead of 'ref' (#11626)
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/repr.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/system/repr.nim b/lib/system/repr.nim index f276853cd..29c0d4ce9 100644 --- a/lib/system/repr.nim +++ b/lib/system/repr.nim @@ -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) |