Skip to content

Commit

Permalink
Update src/univariate/continuous/exponential.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Stock <42280794+sostock@users.noreply.github.com>
  • Loading branch information
rafaqz and sostock authored Sep 11, 2023
1 parent 2c0a579 commit 419120e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/univariate/continuous/exponential.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Exponential() = Exponential{Float64}(1.0)
@distr_support Exponential 0.0 Inf

### Conversions
convert(::Type{Exponential{T}}, θ::S) where {T <: Number, S <: Number} = Exponential(T(θ))
convert(::Type{Exponential{T}}, θ::S) where {T <: Number, S <: Number} = Exponential(convert(T, θ))
function Base.convert(::Type{Exponential{T}}, d::Exponential) where {T<:Real}
return Exponential(T(d.θ))
end
Expand Down

0 comments on commit 419120e

Please sign in to comment.