aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/extern.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/extern.go')
-rw-r--r--src/runtime/extern.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/extern.go b/src/runtime/extern.go
index cd90390b34..540d7b5124 100644
--- a/src/runtime/extern.go
+++ b/src/runtime/extern.go
@@ -114,7 +114,7 @@ func Caller(skip int) (pc uintptr, file string, line int, ok bool) {
// and what it called, so that we can see if it
// "called" sigpanic.
var rpc [2]uintptr
- if callers(1+skip-1, &rpc[0], 2) < 2 {
+ if callers(1+skip-1, rpc[:]) < 2 {
return
}
f := findfunc(rpc[1])
@@ -161,7 +161,7 @@ func Callers(skip int, pc []uintptr) int {
if len(pc) == 0 {
return 0
}
- return callers(skip, &pc[0], len(pc))
+ return callers(skip, pc)
}
// GOROOT returns the root of the Go tree.