Skip to content

Commit

Permalink
Bug fix loading double parameter value
Browse files Browse the repository at this point in the history
An integer value needs to be coerced correctly.
  • Loading branch information
whart222 committed Sep 30, 2024
1 parent 8a34c2e commit f08f88d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/coek/coek/util/DataPortal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ void load_param_data(T& obj, DataPortalRepn::ParameterTypes& param_variant,
// Double parameter
//
if (obj.IsInt())
param_variant = obj.GetInt();
param_variant = static_cast<double>(obj.GetInt());
else if (obj.IsDouble())
param_variant = obj.GetDouble();
else
Expand Down

0 comments on commit f08f88d

Please sign in to comment.