Skip to content

Commit

Permalink
Fix casting to Float64 on complex vector
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph McKinsey committed Apr 23, 2024
1 parent 9023dcb commit a890584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api.jl
Expand Up @@ -2421,7 +2421,7 @@ Get a complex vector from a [`Subscription`](@ref)
- `ipt`: the [`Input`](@ref) to get the result for
"""
function helicsInputGetComplexVector(ipt::Input)::Vector{Float64}
function helicsInputGetComplexVector(ipt::Input)::Vector{ComplexF64}
maxlen = Cint(helicsInputGetVectorSize(ipt))
data = Vector{Float64}(undef, maxlen)
actualSize = Ref(maxlen)
Expand Down

0 comments on commit a890584

Please sign in to comment.