From 9bcccf81ed7c93a6f1ea4bfc0d905178e6db8e81 Mon Sep 17 00:00:00 2001 From: cui <523516579@qq.com> Date: Fri, 9 Sep 2022 22:16:07 +0800 Subject: [PATCH] proc: reduntant type conversion (#3131) Co-authored-by: weixiecui --- pkg/proc/variables.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/proc/variables.go b/pkg/proc/variables.go index b46fdad0..11e2b2ba 100644 --- a/pkg/proc/variables.go +++ b/pkg/proc/variables.go @@ -833,7 +833,7 @@ var ErrUnreadableG = errors.New("could not read G struct") func (v *Variable) parseG() (*G, error) { mem := v.mem - gaddr := uint64(v.Addr) + gaddr := v.Addr _, deref := v.RealType.(*godwarf.PtrType) if deref {