]> Cypherpunks repositories - gostls13.git/commit
math/big: trim trailing zeros before hex printing
authorDave Cheney <dave@cheney.net>
Tue, 2 Jun 2015 03:08:59 +0000 (13:08 +1000)
committerRobert Griesemer <gri@golang.org>
Wed, 3 Jun 2015 22:06:04 +0000 (22:06 +0000)
commitd15597e1b21a0324692e8664eb6b2f8158dafd10
tree1c48b3b85edaae27c3645648f879e2394e8d92e6
parent0f6da8923f2fcafdedc6fd64c6b2cfe1ecc6c97c
math/big: trim trailing zeros before hex printing

m was being resliced as the result of looking for the first
non zero word of the mantissa, however m was not used later
in printing.

Spotted by Gordon Klaus, https://groups.google.com/forum/#!topic/golang-nuts/MdDLbvOjb4o

Change-Id: Ifbebb51ea5e0d86cb8e0422eb184b8634639a733
Reviewed-on: https://go-review.googlesource.com/10604
Reviewed-by: Robert Griesemer <gri@golang.org>
src/math/big/ftoa.go