diff Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 2112:82461d1e8e17

removal warning with MSVC
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 27 Oct 2016 11:32:38 +0200
parents d5c29fd74ffa
children aa2915963531
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: