summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorIco Doornekamp <ico@pruts.nl>2019-07-01 11:59:27 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-07-01 11:59:27 +0200
commita5686961bda5ecaa36d45bb2f95701977d62df4d (patch)
treec232bc05c8ef62b0c46f3887af0082b41b27610a /lib/system
parentd7a7662a7fa24a05f7b99b21969664d027e0fe53 (diff)
downloadNim-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.nim3
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)