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
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.
The text was updated successfully, but these errors were encountered:
««« backport 344d5c33331a
fmt: fix crash of %b on huge negative int64
The buffer had 64 bytes but needs one more for the sign.
Fixes#3510.
R=golang-dev, dave, dsymonds
CC=golang-dev
https://golang.org/cl/6011057
»»»
by leterip:
The text was updated successfully, but these errors were encountered: