summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
Diffstat (limited to 'math.c')
-rw-r--r--math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/math.c b/math.c
index 3a4ed73..e457716 100644
--- a/math.c
+++ b/math.c
@@ -542,7 +542,7 @@ math_gamma(VALUE obj, VALUE x)
* the sign of gamma of x.
*
* Math.lgamma(x) is same as
- * [Math.log(Math.gamma(x)), Math.gamma(x) < 0 ? -1 : 1]
+ * [Math.log(Math.gamma(x).abs), Math.gamma(x) < 0 ? -1 : 1]
* but avoid overflow by Math.gamma(x) for large x.
*/