From a5686961bda5ecaa36d45bb2f95701977d62df4d Mon Sep 17 00:00:00 2001 From: Ico Doornekamp Date: Mon, 1 Jul 2019 11:59:27 +0200 Subject: Make repr use 'ptr' for ptr types instead of 'ref' (#11626) --- lib/system/repr.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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) -- cgit 1.4.1-2-gfad0