summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
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)