aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/math/atan.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/math/atan.go')
-rw-r--r--libgo/go/math/atan.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/go/math/atan.go b/libgo/go/math/atan.go
index d942bce..4c9eda4 100644
--- a/libgo/go/math/atan.go
+++ b/libgo/go/math/atan.go
@@ -97,6 +97,9 @@ func satan(x float64) float64 {
func libc_atan(float64) float64
func Atan(x float64) float64 {
+ if x == 0 {
+ return x
+ }
return libc_atan(x)
}