diff options
author | Matthew Dempsky <mdempsky@google.com> | 2016-02-29 15:01:00 -0800 |
---|---|---|
committer | Matthew Dempsky <mdempsky@google.com> | 2016-03-07 20:53:27 +0000 |
commit | a03bdc3e6bea34abd5077205371e6fb9ef354481 (patch) | |
tree | 305aea0c37fe51db90660eef9133e6254ebf864a /src/runtime/signal_netbsd_386.go | |
parent | 1ec4f227f45f669dfcc017b1eb1d147aca5ac620 (diff) | |
download | go-a03bdc3e6bea34abd5077205371e6fb9ef354481.tar.gz go-a03bdc3e6bea34abd5077205371e6fb9ef354481.zip |
runtime: eliminate unnecessary type conversions
Automated refactoring produced using github.com/mdempsky/unconvert.
Change-Id: Iacf871a4f221ef17f48999a464ab2858b2bbaa90
Reviewed-on: https://go-review.googlesource.com/20071
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/signal_netbsd_386.go')
-rw-r--r-- | src/runtime/signal_netbsd_386.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/signal_netbsd_386.go b/src/runtime/signal_netbsd_386.go index b7e0e536f5..af49d5dec0 100644 --- a/src/runtime/signal_netbsd_386.go +++ b/src/runtime/signal_netbsd_386.go @@ -22,12 +22,12 @@ func (c *sigctxt) ebp() uint32 { return c.regs().__gregs[_REG_EBP] } func (c *sigctxt) esp() uint32 { return c.regs().__gregs[_REG_UESP] } func (c *sigctxt) eip() uint32 { return c.regs().__gregs[_REG_EIP] } func (c *sigctxt) eflags() uint32 { return c.regs().__gregs[_REG_EFL] } -func (c *sigctxt) cs() uint32 { return uint32(c.regs().__gregs[_REG_CS]) } -func (c *sigctxt) fs() uint32 { return uint32(c.regs().__gregs[_REG_FS]) } -func (c *sigctxt) gs() uint32 { return uint32(c.regs().__gregs[_REG_GS]) } +func (c *sigctxt) cs() uint32 { return c.regs().__gregs[_REG_CS] } +func (c *sigctxt) fs() uint32 { return c.regs().__gregs[_REG_FS] } +func (c *sigctxt) gs() uint32 { return c.regs().__gregs[_REG_GS] } func (c *sigctxt) sigcode() uint32 { return uint32(c.info._code) } func (c *sigctxt) sigaddr() uint32 { - return uint32(*(*uint32)(unsafe.Pointer(&c.info._reason[0]))) + return *(*uint32)(unsafe.Pointer(&c.info._reason[0])) } func (c *sigctxt) set_eip(x uint32) { c.regs().__gregs[_REG_EIP] = x } |