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_linux_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_linux_arm.go')
-rw-r--r-- | src/runtime/signal_linux_arm.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/signal_linux_arm.go b/src/runtime/signal_linux_arm.go index 06a57b83b9..876b505917 100644 --- a/src/runtime/signal_linux_arm.go +++ b/src/runtime/signal_linux_arm.go @@ -39,7 +39,7 @@ func (c *sigctxt) lr() uint32 { return c.regs().lr } func (c *sigctxt) pc() uint32 { return c.regs().pc } func (c *sigctxt) cpsr() uint32 { return c.regs().cpsr } -func (c *sigctxt) fault() uint32 { return c.regs().fault_address } +func (c *sigctxt) fault() uintptr { return uintptr(c.regs().fault_address) } func (c *sigctxt) trap() uint32 { return c.regs().trap_no } func (c *sigctxt) error() uint32 { return c.regs().error_code } func (c *sigctxt) oldmask() uint32 { return c.regs().oldmask } |