Skip to content

golang.org/x/sys/windows: Can't compile windows app  #54462

@ghost

Description

What version of Go are you using (go version)?

$ go version
go version go1.10.8 windows/amd64

Does this issue reproduce with the latest release?

Yes, since 1.13.0

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
set GOARCH=amd64
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows

What did you do?

What did you expect to see?

No errors and warnings. Backward compatibility exists

What did you see instead?

../../../go/src/golang.org/x/sys/windows/syscall_windows.go:1791:11: invalid operation: 1 << pos (shift count type int, must be unsigned integer)
../../../go/src/golang.org/x/sys/windows/syscall_windows.go:1795:23: invalid operation: masked >> start (shift count type int, must be unsigned integer)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions