summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
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);
}