From f08f88d53a90d4801fee6565d9c1d1ed96f94196 Mon Sep 17 00:00:00 2001 From: whart222 Date: Mon, 30 Sep 2024 07:56:03 -0600 Subject: [PATCH] Bug fix loading double parameter value An integer value needs to be coerced correctly. --- lib/coek/coek/util/DataPortal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/coek/coek/util/DataPortal.cpp b/lib/coek/coek/util/DataPortal.cpp index b6c5183d..568bd22c 100644 --- a/lib/coek/coek/util/DataPortal.cpp +++ b/lib/coek/coek/util/DataPortal.cpp @@ -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(obj.GetInt()); else if (obj.IsDouble()) param_variant = obj.GetDouble(); else