We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/asm/internal/asm/parse.go:817: comparison of identifier shift < 0 is always false
shift is a uint64, and can never be negative. The check and error is unreachable code.
func (p *Parser) term() uint64 { value := p.factor() for { ... case lex.RSH: p.next() shift := p.term() if shift < 0 { p.errorf("negative right shift %d", shift) }
The text was updated successfully, but these errors were encountered:
3cab476
The fix should have been to change shift < 0 to int64(shift) < 0.
Sorry, something went wrong.
58d177c
Replied to CL.
I believe this is finally fixed. If not, please don't make any more changes before Go 1.5 is released.
It is fixed.
No branches or pull requests
cmd/asm/internal/asm/parse.go:817: comparison of identifier shift < 0 is always false
shift is a uint64, and can never be negative. The check and error is unreachable code.
The text was updated successfully, but these errors were encountered: