diff options
| author | Matthew Dempsky <mdempsky@google.com> | 2016-04-14 19:09:36 -0700 |
|---|---|---|
| committer | Matthew Dempsky <mdempsky@google.com> | 2016-04-15 07:31:45 +0000 |
| commit | 0da4dbe2322eb3b6224df35ce3e9fc83f104762b (patch) | |
| tree | 264b8c9e959b16d9b3754996414b948ee6166cd7 /src/strconv/extfloat.go | |
| parent | 80e7dddffafa6c5eb8e98d642b87546eb8e445ab (diff) | |
| download | go-0da4dbe2322eb3b6224df35ce3e9fc83f104762b.tar.xz | |
all: remove unnecessary type conversions
cmd and runtime were handled separately, and I'm intentionally skipped
syscall. This is the rest of the standard library.
CL generated mechanically with github.com/mdempsky/unconvert.
Change-Id: I9e0eff886974dedc37adb93f602064b83e469122
Reviewed-on: https://go-review.googlesource.com/22104
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/strconv/extfloat.go')
| -rw-r--r-- | src/strconv/extfloat.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strconv/extfloat.go b/src/strconv/extfloat.go index 019b4eebdc..7033e96c39 100644 --- a/src/strconv/extfloat.go +++ b/src/strconv/extfloat.go @@ -311,9 +311,9 @@ func (f *extFloat) AssignDecimal(mantissa uint64, exp10 int, neg bool, trunc boo var extrabits uint if f.exp <= denormalExp { // f.mant * 2^f.exp is smaller than 2^(flt.bias+1). - extrabits = uint(63 - flt.mantbits + 1 + uint(denormalExp-f.exp)) + extrabits = 63 - flt.mantbits + 1 + uint(denormalExp-f.exp) } else { - extrabits = uint(63 - flt.mantbits) + extrabits = 63 - flt.mantbits } halfway := uint64(1) << (extrabits - 1) |
