aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/panic.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2015-10-15 14:33:50 -0700
committerMatthew Dempsky <mdempsky@google.com>2015-10-15 21:48:37 +0000
commit4c2465d47d8c706832bbc57668680a3ffc4d800f (patch)
tree8351222baa9c0f53cc0786bea2e26268a5b6fc0f /src/runtime/panic.go
parent67722fea5015d43d8fc9a533533c9b580fa99fc8 (diff)
downloadgo-4c2465d47d8c706832bbc57668680a3ffc4d800f.tar.xz
runtime: use unsafe.Pointer(x) instead of (unsafe.Pointer)(x)
This isn't C anymore. No binary change to pkg/linux_amd64/runtime.a. Change-Id: I24d66b0f5ac888f432b874aac684b1395e7c8345 Reviewed-on: https://go-review.googlesource.com/15903 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/panic.go')
-rw-r--r--src/runtime/panic.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/panic.go b/src/runtime/panic.go
index a1662812de..9a3f4bd486 100644
--- a/src/runtime/panic.go
+++ b/src/runtime/panic.go
@@ -417,7 +417,7 @@ func gopanic(e interface{}) {
// Record the panic that is running the defer.
// If there is a new panic during the deferred call, that panic
// will find d in the list and will mark d._panic (this panic) aborted.
- d._panic = (*_panic)(noescape((unsafe.Pointer)(&p)))
+ d._panic = (*_panic)(noescape(unsafe.Pointer(&p)))
p.argp = unsafe.Pointer(getargp(0))
reflectcall(nil, unsafe.Pointer(d.fn), deferArgs(d), uint32(d.siz), uint32(d.siz))