Skip to content

Commit 5234453

Browse files
committed
Default float type to float(Real), not Real
Closes #684
1 parent cdd3407 commit 5234453

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DynamicPPL"
22
uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8"
3-
version = "0.28.4"
3+
version = "0.28.5"
44

55
[deps]
66
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"

src/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,9 +811,9 @@ end
811811
"""
812812
float_type_with_fallback(x)
813813
814-
Return type corresponding to `float(typeof(x))` if possible; otherwise return `Real`.
814+
Return type corresponding to `float(typeof(x))` if possible; otherwise return `float(Real)`.
815815
"""
816-
float_type_with_fallback(::Type) = Real
816+
float_type_with_fallback(::Type) = float(Real)
817817
float_type_with_fallback(::Type{T}) where {T<:Real} = float(T)
818818

819819
"""

0 commit comments

Comments
 (0)