changeset 2112:82461d1e8e17

removal warning with MSVC
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 27 Oct 2016 11:32:38 +0200
parents 64d0224595cc
children 0108ac01fc8e
files Plugins/Samples/Common/OrthancPluginCppWrapper.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp	Thu Oct 27 11:20:12 2016 +0200
+++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp	Thu Oct 27 11:32:38 2016 +0200
@@ -526,11 +526,11 @@
         return true;
         
       case Json::intValue:
-        target = configuration_[key].asInt();
+        target = static_cast<float>(configuration_[key].asInt());
         return true;
         
       case Json::uintValue:
-        target = configuration_[key].asUInt();
+        target = static_cast<float>(configuration_[key].asUInt());
         return true;
         
       default: