Skip to content

Commit

Permalink
Type stability for StringToValueReference
Browse files Browse the repository at this point in the history
  • Loading branch information
CasBex committed Nov 16, 2023
1 parent ef9a560 commit a538f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FMI2/convert.jl
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Returns the ValueReference or an array of ValueReferences coresponding to the va
See also [`fmi2StringToValueReference`](@ref)
"""
function fmi2StringToValueReference(md::fmi2ModelDescription, name::String)
reference = nothing
reference = typemax(valtype(md.stringValueReferences))
if haskey(md.stringValueReferences, name)
reference = md.stringValueReferences[name]
else
Expand Down

0 comments on commit a538f79

Please sign in to comment.