Mercurial > hg > orthanc
diff Plugins/Engine/OrthancPlugins.cpp @ 1545:33d34bc4ac15
fix msvc warnings
author | jodogne |
---|---|
date | Thu, 13 Aug 2015 21:02:31 +0200 |
parents | 3606278d305e |
children | 7c4b487b3b4a |
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPlugins.cpp Thu Aug 13 20:39:30 2015 +0200 +++ b/Plugins/Engine/OrthancPlugins.cpp Thu Aug 13 21:02:31 2015 +0200 @@ -1191,7 +1191,7 @@ try { - content.resize(size); + content.resize(static_cast<size_t>(size)); } catch (OrthancException&) { @@ -1201,7 +1201,7 @@ if (size > 0) { - memcpy(&content[0], buffer, size); + memcpy(&content[0], buffer, static_cast<size_t>(size)); } Free(buffer);