]> Cypherpunks repositories - gostls13.git/commit
math/big: fix aliasing error in Add, Sub
authorRobert Griesemer <gri@golang.org>
Fri, 13 Feb 2015 20:47:44 +0000 (12:47 -0800)
committerRobert Griesemer <gri@golang.org>
Sat, 14 Feb 2015 00:42:05 +0000 (00:42 +0000)
commit31e852402fdf36ccc9fd84436d082e960b755cd3
tree3c31bbead00b5405ccf58c6cc01f5b9003e77348
parent7a77d8d1e9b006ae49fd456a8912a8ec03af8ec7
math/big: fix aliasing error in Add, Sub

Also:
- make representation more flexible (no need to store trailing 0 digits to match precision)
- simplify rounding as a consequence
- minor related fixes

TBR adonovan

Change-Id: Ie91075990688b506d28371ec3b633b8267397ebb
Reviewed-on: https://go-review.googlesource.com/4841
Reviewed-by: Rob Pike <r@golang.org>
src/math/big/float.go
src/math/big/float_test.go
src/math/big/floatconv.go