]> Cypherpunks repositories - gostls13.git/commit
fmt: Scan(&int) was mishandling a lone zero.
authorRob Pike <r@golang.org>
Mon, 18 Jul 2011 00:05:35 +0000 (10:05 +1000)
committerRob Pike <r@golang.org>
Mon, 18 Jul 2011 00:05:35 +0000 (10:05 +1000)
commitf189308fb40456f036fe6eacbc38bec0ce8607d7
tree15e0600b4fe785aba88edfd2f824d407a753b5e5
parent8c5c3c504c66a704294e20742f5a701aaf8674f0
fmt: Scan(&int) was mishandling a lone zero.
It took it as an octal base prefix but assumed more digits were coming.
Fixes #2077.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4764044
src/pkg/fmt/scan.go
src/pkg/fmt/scan_test.go