diff --git a/libgo/go/net/http/pprof/pprof.go b/libgo/go/net/http/pprof/pprof.go index 1ad2a89356080..6d45d7dc9af2f 100644 --- a/libgo/go/net/http/pprof/pprof.go +++ b/libgo/go/net/http/pprof/pprof.go @@ -202,7 +202,7 @@ func Symbol(w http.ResponseWriter, r *http.Request) { } pc, _ := strconv.ParseUint(string(word), 0, 64) if pc != 0 { - if pc > ^uint64(0)>>1 { + if pc > ^uint64(uintptr(0)) { fmt.Fprintf(&buf, "address out of range: %v\n", pc) continue }