Skip to content

Commit c5751d4

Browse files
Update src/multivariate.jl
Co-Authored-By: David Widmann <[email protected]>
1 parent 79e7e03 commit c5751d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/multivariate.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function TuringDirichlet(alpha::AbstractVector{T}) where {T <: Integer}
3232
Tf = float(T)
3333
TuringDirichlet(convert(AbstractVector{Tf}, alpha))
3434
end
35-
TuringDirichlet(d::Integer, alpha::Integer) = TuringDirichlet(d, Float64(alpha))
35+
TuringDirichlet(d::Integer, alpha::Integer) = TuringDirichlet(d, float(alpha))
3636

3737
Distributions.Dirichlet(alpha::TrackedVector) = TuringDirichlet(alpha)
3838
Distributions.Dirichlet(d::Integer, alpha::TrackedReal) = TuringDirichlet(d, alpha)

0 commit comments

Comments
 (0)