fix loc.Location, re-enable tip

This commit is contained in:
Dave Cheney 2016-04-25 07:42:30 +09:00
parent 346b85b84a
commit ab94cc2ab2
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ go:
- 1.4.3
- 1.5.4
- 1.6.1
- tip
script:
- go test -v ./...

View File

@ -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