From 9515610afbbfafdde13052265f115a5e65d6756f Mon Sep 17 00:00:00 2001 From: Danny Rosseau Date: Thu, 10 Aug 2017 13:08:23 -0600 Subject: encoding/gob: fix Debug to properly print uint Fix debugger printing of uint that mistakenly invoked .int64() instead of .uint64() Fixes #21392 Change-Id: I107a7e87e0efbb06303c1e627dee76c369f75d1e Reviewed-on: https://go-review.googlesource.com/54750 Reviewed-by: Emmanuel Odeke Reviewed-by: Rob Pike Run-TryBot: Emmanuel Odeke TryBot-Result: Gobot Gobot --- src/encoding/gob/debug.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/encoding/gob/debug.go') diff --git a/src/encoding/gob/debug.go b/src/encoding/gob/debug.go index d69d36f516..8f93742f49 100644 --- a/src/encoding/gob/debug.go +++ b/src/encoding/gob/debug.go @@ -594,7 +594,7 @@ func (deb *debugger) printBuiltin(indent tab, id typeId) { x := deb.int64() fmt.Fprintf(os.Stderr, "%s%d\n", indent, x) case tUint: - x := deb.int64() + x := deb.uint64() fmt.Fprintf(os.Stderr, "%s%d\n", indent, x) case tFloat: x := deb.uint64() -- cgit v1.3-5-g9baa