summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-10 11:38:47 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-10 11:38:47 +0000
commit6b7e6f08b00b178e4df23096c5a6ba3873b5bba8 (patch)
tree2ad076d61eb6dbcac4e2f1bbd38411a0cf3bfe9c /math.c
parentf65dbbd24ad8c550575c661223008ea491a3a777 (diff)
* math.c (math_atanh): reverted r25279.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r--math.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/math.c b/math.c
index 630aa13baa..51caf35c5d 100644
--- a/math.c
+++ b/math.c
@@ -298,6 +298,7 @@ math_atanh(VALUE obj, VALUE x)
d0 = RFLOAT_VALUE(x);
d = atanh(d0);
domain_check(d0, d, "atanh");
+ infinity_check(x, d, "atanh");
return DBL2NUM(d);
}