# HG changeset patch # User jodogne # Date 1500109182 -7200 # Node ID 9ccd7f926c5b5e26cfdf123859b12988561cc8be # Parent a47d07b5b39f418d2f4e9381509584c2fc1c3330 fix warnings in visual studio diff -r a47d07b5b39f -r 9ccd7f926c5b Core/HttpServer/FilesystemHttpSender.cpp --- a/Core/HttpServer/FilesystemHttpSender.cpp Fri Jul 14 17:29:18 2017 +0200 +++ b/Core/HttpServer/FilesystemHttpSender.cpp Sat Jul 15 10:59:42 2017 +0200 @@ -70,7 +70,7 @@ throw OrthancException(ErrorCode_CorruptedFile); } - chunkSize_ = file_.gcount(); + chunkSize_ = static_cast(file_.gcount()); return chunkSize_ > 0; } diff -r a47d07b5b39f -r 9ccd7f926c5b Core/SystemToolbox.cpp --- a/Core/SystemToolbox.cpp Fri Jul 14 17:29:18 2017 +0200 +++ b/Core/SystemToolbox.cpp Sat Jul 15 10:59:42 2017 +0200 @@ -193,7 +193,7 @@ } std::streamsize size = GetStreamSize(f); - content.resize(size); + content.resize(static_cast(size)); if (size != 0) { f.read(reinterpret_cast(&content[0]), size); @@ -231,7 +231,7 @@ } else if (static_cast(size) < headerSize) { - headerSize = size; // Truncate to the size of the file + headerSize = static_cast(size); // Truncate to the size of the file full = false; } }