comparison Plugins/Engine/OrthancPlugins.cpp @ 1545:33d34bc4ac15

fix msvc warnings
author jodogne
date Thu, 13 Aug 2015 21:02:31 +0200
parents 3606278d305e
children 7c4b487b3b4a
comparison
equal deleted inserted replaced
1544:4d0e2c38d15b 1545:33d34bc4ac15
1189 throw OrthancException(ErrorCode_Plugin); 1189 throw OrthancException(ErrorCode_Plugin);
1190 } 1190 }
1191 1191
1192 try 1192 try
1193 { 1193 {
1194 content.resize(size); 1194 content.resize(static_cast<size_t>(size));
1195 } 1195 }
1196 catch (OrthancException&) 1196 catch (OrthancException&)
1197 { 1197 {
1198 Free(buffer); 1198 Free(buffer);
1199 throw; 1199 throw;
1200 } 1200 }
1201 1201
1202 if (size > 0) 1202 if (size > 0)
1203 { 1203 {
1204 memcpy(&content[0], buffer, size); 1204 memcpy(&content[0], buffer, static_cast<size_t>(size));
1205 } 1205 }
1206 1206
1207 Free(buffer); 1207 Free(buffer);
1208 } 1208 }
1209 1209