diff options
author | Austin Clements <austin@google.com> | 2017-09-26 19:42:26 -0400 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2017-10-05 02:31:25 +0000 |
commit | 56462d0f10f4d88f30e0b9a6763835c85c3cd632 (patch) | |
tree | 9593ed43863f7bc5a17629befabe679a5f26f70d /src/runtime/signal_darwin_arm64.go | |
parent | ba42b3ffd3220516911705fd2d060ea02e5502bb (diff) | |
download | go-56462d0f10f4d88f30e0b9a6763835c85c3cd632.tar.gz go-56462d0f10f4d88f30e0b9a6763835c85c3cd632.zip |
runtime: normalize (*sigctxt).fault() type
(*sigctxt).fault() currently returns either uintptr, uint32, or uint64
depending on the platform. Make them all return uintptr.
For #10958 (but a nice change on its own).
Change-Id: I7813e779d0edcba112dd47fda776f4ce6e50e227
Reviewed-on: https://go-review.googlesource.com/68015
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/runtime/signal_darwin_arm64.go')
-rw-r--r-- | src/runtime/signal_darwin_arm64.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/signal_darwin_arm64.go b/src/runtime/signal_darwin_arm64.go index b14b9f1e50..41b8fcaab9 100644 --- a/src/runtime/signal_darwin_arm64.go +++ b/src/runtime/signal_darwin_arm64.go @@ -52,7 +52,7 @@ func (c *sigctxt) sp() uint64 { return c.regs().sp } //go:nowritebarrierrec func (c *sigctxt) pc() uint64 { return c.regs().pc } -func (c *sigctxt) fault() uint64 { return uint64(uintptr(unsafe.Pointer(c.info.si_addr))) } +func (c *sigctxt) fault() uintptr { return uintptr(unsafe.Pointer(c.info.si_addr)) } func (c *sigctxt) sigcode() uint64 { return uint64(c.info.si_code) } func (c *sigctxt) sigaddr() uint64 { return uint64(uintptr(unsafe.Pointer(c.info.si_addr))) } |