diff options
Diffstat (limited to 'libgo/go/math/expm1.go')
-rw-r--r-- | libgo/go/math/expm1.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/math/expm1.go b/libgo/go/math/expm1.go index 5a96218..a0a62d1 100644 --- a/libgo/go/math/expm1.go +++ b/libgo/go/math/expm1.go @@ -235,7 +235,7 @@ func expm1(x float64) float64 { } t := Float64frombits(uint64(0x3ff-k) << 52) // 2**-k y := x - (e + t) - y += 1 + y++ y = Float64frombits(Float64bits(y) + uint64(k)<<52) // add k to y's exponent return y } |