We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdd3407 commit 9ec575cCopy full SHA for 9ec575c
Project.toml
@@ -1,6 +1,6 @@
1
name = "DynamicPPL"
2
uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8"
3
-version = "0.28.4"
+version = "0.28.5"
4
5
[deps]
6
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
src/utils.jl
@@ -811,9 +811,9 @@ end
811
"""
812
float_type_with_fallback(x)
813
814
-Return type corresponding to `float(typeof(x))` if possible; otherwise return `Real`.
+Return type corresponding to `float(typeof(x))` if possible; otherwise return `float(Real)`.
815
816
-float_type_with_fallback(::Type) = Real
+float_type_with_fallback(::Type) = float(Real)
817
float_type_with_fallback(::Type{T}) where {T<:Real} = float(T)
818
819
0 commit comments