Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Commit ab94cc2

Browse files
committed
fix loc.Location, re-enable tip
1 parent 346b85b commit ab94cc2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ go:
44
- 1.4.3
55
- 1.5.4
66
- 1.6.1
7+
- tip
78

89
script:
910
- go test -v ./...

errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ import (
5959
type loc uintptr
6060

6161
func (l loc) Location() (string, int) {
62-
pc := uintptr(l)
62+
pc := uintptr(l) - 1
6363
fn := runtime.FuncForPC(pc)
6464
if fn == nil {
6565
return "unknown", 0

0 commit comments

Comments
 (0)