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?
http://play.golang.org/p/MYhh1EUqQX
1. time.ParseDuration with a decimal longer than 9 digits
2. build for 386 architecture
3. notice the duration has not been parsed properly
Which compiler are you using (5g, 6g, 8g, gccgo)?
8g
Which operating system are you using?
windows/linux
Which version are you using? (run 'go version')
go1.1.2
Please provide any additional information below.
I was able to correct the issue locally by changing this line in time.ParseDuration:
scale := 1
to
scale := float64(1)
The text was updated successfully, but these errors were encountered:
…re than 9 digits on 32-bit arch
««« CL 15080043 / fbf3b853e00b
time: fix ParseDuration overflow when given more than 9 digits on 32-bit arch
Fixes#6617.
R=golang-dev, rsc, r
CC=golang-dev
https://golang.org/cl/15080043
»»»
R=golang-dev
CC=golang-dev
https://golang.org/cl/20050045
The text was updated successfully, but these errors were encountered: