aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/buildid/note.go
diff options
context:
space:
mode:
authorKunpei Sakai <namusyaka@gmail.com>2018-02-25 20:08:22 +0900
committerMatthew Dempsky <mdempsky@google.com>2018-02-26 20:22:06 +0000
commit0c471dfae29b0759c6f12e32d2d5ca69ea79d5d8 (patch)
treea1f155bc179ab634ddbfc5639b37275aa7b36f58 /src/cmd/internal/buildid/note.go
parentf4d9c309018f6bbb85c7076a9fbe0387fb7b0b1c (diff)
downloadgo-0c471dfae29b0759c6f12e32d2d5ca69ea79d5d8.tar.xz
cmd: avoid unnecessary type conversions
CL generated mechanically with github.com/mdempsky/unconvert. Also updated cmd/compile/internal/ssa/gen/*.rules manually. Change-Id: If721ef73cf0771ae83ce7e2d11623fc8d9155768 Reviewed-on: https://go-review.googlesource.com/97075 Reviewed-by: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/internal/buildid/note.go')
-rw-r--r--src/cmd/internal/buildid/note.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/internal/buildid/note.go b/src/cmd/internal/buildid/note.go
index f0439fb0bf..5895da906a 100644
--- a/src/cmd/internal/buildid/note.go
+++ b/src/cmd/internal/buildid/note.go
@@ -147,7 +147,7 @@ func readELF(name string, f *os.File, data []byte) (buildid string, err error) {
break
}
off += notesz
- align := uint64(p.Align)
+ align := p.Align
alignedOff := (off + align - 1) &^ (align - 1)
notesz += alignedOff - off
off = alignedOff