Skip to content

Commit 8d2482c

Browse files
fix: fix symconvert
1 parent 27e7efb commit 8d2482c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/parameter_buffer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
symconvert(::Type{Symbolics.Struct{T}}, x) where {T} = convert(T, x)
2-
symconvert(::Type{T}, x) where {T} = convert(T, x)
2+
symconvert(::Type{T}, x::V) where {T, V} = convert(promote_type(T, V), x)
33
symconvert(::Type{Real}, x::Integer) = convert(Float16, x)
44
symconvert(::Type{V}, x) where {V <: AbstractArray} = convert(V, symconvert.(eltype(V), x))
55

0 commit comments

Comments
 (0)