You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/11/09 08:07:50 UTC
[commons-numbers] branch master updated: Avoid integer math to
create the double value passed to LogGamma.
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
The following commit(s) were added to refs/heads/master by this push:
new 3998804 Avoid integer math to create the double value passed to LogGamma.
3998804 is described below
commit 39988044becf83861fa7da485ab1bd217ec31d4c
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Sat Nov 9 08:07:46 2019 +0000
Avoid integer math to create the double value passed to LogGamma.
---
.../java/org/apache/commons/numbers/combinatorics/LogFactorial.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-numbers-combinatorics/src/main/java/org/apache/commons/numbers/combinatorics/LogFactorial.java b/commons-numbers-combinatorics/src/main/java/org/apache/commons/numbers/combinatorics/LogFactorial.java
index b1012c1..00b6813 100644
--- a/commons-numbers-combinatorics/src/main/java/org/apache/commons/numbers/combinatorics/LogFactorial.java
+++ b/commons-numbers-combinatorics/src/main/java/org/apache/commons/numbers/combinatorics/LogFactorial.java
@@ -110,6 +110,6 @@ public final class LogFactorial {
}
// Delegate.
- return LogGamma.value(n + 1);
+ return LogGamma.value(n + 1.0);
}
}