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
by [email protected]:
package main func main() { // 5 println(5 / (5 / 3)) // 5 println(byte(5) / (byte(5) / byte(3))) // 5 var a, b byte = 5, 3 println(a / (a / b)) // integer divide by zero in golang.org sandbox // 0 on windows/amd64 x := [3]byte{2, 3, 5} println(x[2] / (x[2] / x[1])) // integer divide by zero in golang.org sandbox // crash on windows/amd64 y := x[1:3] println(y[1] / (y[1] / y[0])) }
The text was updated successfully, but these errors were encountered:
Comment 1 by [email protected]:
same with int8, uint8, int16, uint16
Sorry, something went wrong.
Comment 2:
Nice bug.
Owner changed to @rsc.
Status changed to Accepted.
Comment 3:
*** Submitted as http://code.google.com/p/go/source/detail?r=fc60ef40030f *** gc: fix div bug R=ken2 CC=golang-dev
Status changed to Fixed.
No branches or pull requests
by [email protected]:
The text was updated successfully, but these errors were encountered: