Skip to content

Commit 6bd1531

Browse files
Update src/Statistics.jl
Co-authored-by: Milan Bouchet-Valat <[email protected]>
1 parent 44d51c7 commit 6bd1531

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Statistics.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,9 +1035,9 @@ end
10351035
@assert n > 0 # this case should never happen here
10361036

10371037
m = alpha + p * (one(alpha) - alpha - beta)
1038-
# Using muladd here avoids some rounding errors when aleph is an integer
1038+
# Using fma here avoids some rounding errors when aleph is an integer
10391039
# The use of oftype supresses the promotion caused by alpha and beta
1040-
aleph = muladd(n, p, oftype(p, m))
1040+
aleph = fma(n, p, oftype(p, m))
10411041
j = clamp(trunc(Int, aleph), 1, n - 1)
10421042
γ = clamp(aleph - j, 0, 1)
10431043

0 commit comments

Comments
 (0)