From ab94cc2ab2a084d4954a0c570014fb654adde5cd Mon Sep 17 00:00:00 2001 From: Dave Cheney Date: Mon, 25 Apr 2016 07:42:30 +0900 Subject: [PATCH] fix loc.Location, re-enable tip --- .travis.yml | 1 + errors.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7b3349f..13f087a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ go: - 1.4.3 - 1.5.4 - 1.6.1 + - tip script: - go test -v ./... diff --git a/errors.go b/errors.go index cbe07f5..7ebcbba 100644 --- a/errors.go +++ b/errors.go @@ -59,7 +59,7 @@ import ( type loc uintptr func (l loc) Location() (string, int) { - pc := uintptr(l) + pc := uintptr(l) - 1 fn := runtime.FuncForPC(pc) if fn == nil { return "unknown", 0