aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/signal_windows.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2016-02-29 15:01:00 -0800
committerMatthew Dempsky <mdempsky@google.com>2016-03-07 20:53:27 +0000
commita03bdc3e6bea34abd5077205371e6fb9ef354481 (patch)
tree305aea0c37fe51db90660eef9133e6254ebf864a /src/runtime/signal_windows.go
parent1ec4f227f45f669dfcc017b1eb1d147aca5ac620 (diff)
downloadgo-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_windows.go')
-rw-r--r--src/runtime/signal_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/signal_windows.go b/src/runtime/signal_windows.go
index 6a53cf6452..d54dbf7616 100644
--- a/src/runtime/signal_windows.go
+++ b/src/runtime/signal_windows.go
@@ -88,7 +88,7 @@ func exceptionhandler(info *exceptionrecord, r *context, gp *g) int32 {
// won't get to see who faulted.)
if r.ip() != 0 {
sp := unsafe.Pointer(r.sp())
- sp = add(sp, ^uintptr(unsafe.Sizeof(uintptr(0))-1)) // sp--
+ sp = add(sp, ^(unsafe.Sizeof(uintptr(0)) - 1)) // sp--
*((*uintptr)(sp)) = r.ip()
r.setsp(uintptr(sp))
}
@@ -155,7 +155,7 @@ func sigpanic() {
throw("unexpected signal during runtime execution")
}
- switch uint32(g.sig) {
+ switch g.sig {
case _EXCEPTION_ACCESS_VIOLATION:
if g.sigcode1 < 0x1000 || g.paniconfault {
panicmem()