summaryrefslogtreecommitdiff
path: root/libgo/go/runtime/debug/stack.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/runtime/debug/stack.go')
-rw-r--r--libgo/go/runtime/debug/stack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/runtime/debug/stack.go b/libgo/go/runtime/debug/stack.go
index e5fae632b13..a533a5c3bf4 100644
--- a/libgo/go/runtime/debug/stack.go
+++ b/libgo/go/runtime/debug/stack.go
@@ -52,7 +52,7 @@ func stack() []byte {
if err != nil {
continue
}
- lines = bytes.Split(data, []byte{'\n'}, -1)
+ lines = bytes.Split(data, []byte{'\n'})
lastFile = file
}
line-- // in stack trace, lines are 1-indexed but our array is 0-indexed