Skip to content

Commit

Permalink
Avoid integer math to create the double value passed to LogGamma.
Browse files Browse the repository at this point in the history
  • Loading branch information
aherbert committed Nov 9, 2019
1 parent 60c4035 commit 3998804
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -110,6 +110,6 @@ public double value(int n) {
}

// Delegate.
return LogGamma.value(n + 1);
return LogGamma.value(n + 1.0);
}
}

0 comments on commit 3998804

Please sign in to comment.