]> Cypherpunks repositories - gostls13.git/commit
fmt: fix panic with large precision
authorRob Pike <r@golang.org>
Thu, 7 May 2015 18:22:43 +0000 (11:22 -0700)
committerRob Pike <r@golang.org>
Thu, 7 May 2015 20:12:39 +0000 (20:12 +0000)
commitc6688b7b1ff5537177d54322559e1207434c7088
treec369326324dc883a4ab8fb4a673ba3c0b2d7a13b
parente45aebd6dda1830e0a5f31248de70f03f611ccf2
fmt: fix panic with large precision

The code already handled high widths but not high precisions.
Also make sure it handles the harder cases of %U.

Fixes #10745.

Change-Id: Ib4d394d49a9941eeeaff866dc59d80483e312a98
Reviewed-on: https://go-review.googlesource.com/9769
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/fmt/fmt_test.go
src/fmt/format.go