diff options
| author | Robert Dinu <r@varp.se> | 2014-02-12 07:35:54 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2014-02-12 07:35:54 -0800 |
| commit | c50760110280ce1e07e7969eec77b1d32e25ae12 (patch) | |
| tree | 7a151738705fb8d4fe5dd3f5101c70c192d38f05 /src/pkg/debug | |
| parent | 375b8ea4f345416524c9b012bad08e33b29e21e2 (diff) | |
| download | go-c50760110280ce1e07e7969eec77b1d32e25ae12.tar.xz | |
debug/pe: delete unnecessary type conversions
Fixes #7104.
LGTM=iant
R=golang-dev, iant
CC=golang-codereviews
https://golang.org/cl/61480049
Diffstat (limited to 'src/pkg/debug')
| -rw-r--r-- | src/pkg/debug/pe/file.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/pkg/debug/pe/file.go b/src/pkg/debug/pe/file.go index f521566efa..a2859bf370 100644 --- a/src/pkg/debug/pe/file.go +++ b/src/pkg/debug/pe/file.go @@ -213,15 +213,15 @@ func NewFile(r io.ReaderAt) (*File, error) { s := new(Section) s.SectionHeader = SectionHeader{ Name: name, - VirtualSize: uint32(sh.VirtualSize), - VirtualAddress: uint32(sh.VirtualAddress), - Size: uint32(sh.SizeOfRawData), - Offset: uint32(sh.PointerToRawData), - PointerToRelocations: uint32(sh.PointerToRelocations), - PointerToLineNumbers: uint32(sh.PointerToLineNumbers), - NumberOfRelocations: uint16(sh.NumberOfRelocations), - NumberOfLineNumbers: uint16(sh.NumberOfLineNumbers), - Characteristics: uint32(sh.Characteristics), + VirtualSize: sh.VirtualSize, + VirtualAddress: sh.VirtualAddress, + Size: sh.SizeOfRawData, + Offset: sh.PointerToRawData, + PointerToRelocations: sh.PointerToRelocations, + PointerToLineNumbers: sh.PointerToLineNumbers, + NumberOfRelocations: sh.NumberOfRelocations, + NumberOfLineNumbers: sh.NumberOfLineNumbers, + Characteristics: sh.Characteristics, } s.sr = io.NewSectionReader(r, int64(s.SectionHeader.Offset), int64(s.SectionHeader.Size)) s.ReaderAt = s.sr |
