You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My Go installation with "go version":
go version go1.2 windows/amd64
I see in "GOROOT\src\pkg\debug\pe\file.go" unnessary type cast in a function
with prototype "func NewFile(r io.ReaderAt) (*File, error)"
s := new(Section)
s.SectionHeader = SectionHeader{
// skiped
VirtualSize: uint32(sh.VirtualSize),
// skiped more lines
}
Why in this part of code use type cast? Field types of Section and SectionHeader32
structures are equalent!
The text was updated successfully, but these errors were encountered:
by NtVisigoth:
The text was updated successfully, but these errors were encountered: