diff Framework/Orthanc/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 21:d10ff48e47ff

fix warnings in msvc
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 27 Oct 2016 11:35:43 +0200
parents 77b76c1a213f
children 06847108819c
line wrap: on
line diff
--- a/Framework/Orthanc/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp	Thu Oct 27 11:25:09 2016 +0200
+++ b/Framework/Orthanc/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp	Thu Oct 27 11:35:43 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: