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_openbsd_arm.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_openbsd_arm.go')
-rw-r--r-- | src/runtime/signal_openbsd_arm.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/signal_openbsd_arm.go b/src/runtime/signal_openbsd_arm.go index 66aea934f1..97bb13b4f3 100644 --- a/src/runtime/signal_openbsd_arm.go +++ b/src/runtime/signal_openbsd_arm.go @@ -38,7 +38,7 @@ func (c *sigctxt) lr() uint32 { return c.regs().sc_usr_lr } func (c *sigctxt) pc() uint32 { return c.regs().sc_pc } func (c *sigctxt) cpsr() uint32 { return c.regs().sc_spsr } -func (c *sigctxt) fault() uint32 { return c.sigaddr() } +func (c *sigctxt) fault() uintptr { return uintptr(c.sigaddr()) } func (c *sigctxt) trap() uint32 { return 0 } func (c *sigctxt) error() uint32 { return 0 } func (c *sigctxt) oldmask() uint32 { return 0 } |