summary refs log tree commit diff stats
path: root/lib
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
parentd7a7662a7fa24a05f7b99b21969664d027e0fe53 (diff)
downloadNim-a5686961bda5ecaa36d45bb2f95701977d62df4d.tar.gz
Make repr use 'ptr' for ptr types instead of 'ref' (#11626)
Diffstat (limited to 'lib')
-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)
2bf6f5793 ^
e8eb496e6 ^

2bf6f5793 ^



e8eb496e6 ^
2bf6f5793 ^


e8eb496e6 ^
2bf6f5793 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51