diff options
Diffstat (limited to 'libgo/go/math/expm1.go')
-rw-r--r-- | libgo/go/math/expm1.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/go/math/expm1.go b/libgo/go/math/expm1.go index a0a62d1..7494043 100644 --- a/libgo/go/math/expm1.go +++ b/libgo/go/math/expm1.go @@ -126,6 +126,9 @@ package math func libc_expm1(float64) float64 func Expm1(x float64) float64 { + if x == 0 { + return x + } return libc_expm1(x) } |