Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
fmt: panic on printing math.MinInt64 with %b format #3510
What steps will reproduce the problem? If possible, include a link to a program on play.golang.org. 1. fmt.Printf("%b", int64(math.MinInt64)) http://play.golang.org/p/wXVCE2mmka What is the expected output? A binary representation of the minimal int64 value. What do you see instead? panic: runtime error: index out of range Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? darwin Which version are you using? (run 'go version') go version go1 Please provide any additional information below. The problem exists on play.golang.org as well.