summaryrefslogtreecommitdiff
path: root/src/lib/reflect/tostring.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/reflect/tostring.go')
-rw-r--r--src/lib/reflect/tostring.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/reflect/tostring.go b/src/lib/reflect/tostring.go
index f33f5272a..8d2d76424 100644
--- a/src/lib/reflect/tostring.go
+++ b/src/lib/reflect/tostring.go
@@ -171,7 +171,7 @@ func ValueToString(val Value) string {
}
case PtrKind:
v := val.(PtrValue);
- return TypeToString(typ, false) + "(" + integer(int64(v.Get())) + ")";
+ return TypeToString(typ, false) + "(" + integer(int64(uintptr(v.Get()))) + ")";
case ArrayKind:
t := typ.(ArrayType);
v := val.(ArrayValue);