Skip to content

Commit 7117819

Browse files
callthingsoffgopherbot
authored andcommitted
runtime: no need to convert 'c.fault()' to uintptr in sighandler
After CL 528817, *sigctxt.fault of all arches return uintptr, so there is no need to convert 'c.fault()' to uintptr anymore. Change-Id: I062283b578adaaee69d8f439b109a573eeb15110 GitHub-Last-Rev: 3ce3a75 GitHub-Pull-Request: #63133 Reviewed-on: https://go-review.googlesource.com/c/go/+/529995 Reviewed-by: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Michael Pratt <[email protected]>
1 parent b6ae112 commit 7117819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/signal_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ func sighandler(sig uint32, info *siginfo, ctxt unsafe.Pointer, gp *g) {
698698
// the unwinding code.
699699
gp.sig = sig
700700
gp.sigcode0 = uintptr(c.sigcode())
701-
gp.sigcode1 = uintptr(c.fault())
701+
gp.sigcode1 = c.fault()
702702
gp.sigpc = c.sigpc()
703703

704704
c.preparePanic(sig, gp)

0 commit comments

Comments
 (0)