diff Plugins/Engine/OrthancPlugins.cpp @ 2028:d108412411e5

fix msvc warnings
author sjodogne
date Mon, 20 Jun 2016 14:07:29 +0200
parents fefbe71c2272
children 9f61ca1e3eb3
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPlugins.cpp	Mon Jun 20 13:48:36 2016 +0200
+++ b/Plugins/Engine/OrthancPlugins.cpp	Mon Jun 20 14:07:29 2016 +0200
@@ -1811,7 +1811,7 @@
       client.SetClientCertificate(certificate, key, password);
     }
 
-    client.SetPkcs11Enabled(p.pkcs11);
+	client.SetPkcs11Enabled(p.pkcs11 ? true : false);
 
     for (uint32_t i = 0; i < p.headersCount; i++)
     {
@@ -2463,7 +2463,7 @@
         const _OrthancPluginStorageAreaCreate& p =
           *reinterpret_cast<const _OrthancPluginStorageAreaCreate*>(parameters);
         IStorageArea& storage = *reinterpret_cast<IStorageArea*>(p.storageArea);
-        storage.Create(p.uuid, p.content, p.size, Plugins::Convert(p.type));
+        storage.Create(p.uuid, p.content, static_cast<size_t>(p.size), Plugins::Convert(p.type));
         return true;
       }