Skip to content

Commit f08f88d

Browse files
committed
Bug fix loading double parameter value
An integer value needs to be coerced correctly.
1 parent 8a34c2e commit f08f88d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/coek/coek/util/DataPortal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ void load_param_data(T& obj, DataPortalRepn::ParameterTypes& param_variant,
239239
// Double parameter
240240
//
241241
if (obj.IsInt())
242-
param_variant = obj.GetInt();
242+
param_variant = static_cast<double>(obj.GetInt());
243243
else if (obj.IsDouble())
244244
param_variant = obj.GetDouble();
245245
else

0 commit comments

Comments
 (0)