# HG changeset patch # User Sebastien Jodogne # Date 1607447232 -3600 # Node ID 4301722b3225ae0c3ce4a82f6990a3eda6e90ed7 # Parent 074f370131867349e4f502c801d4bbeff7cc1f56 fix for msvc2015 diff -r 074f37013186 -r 4301722b3225 OrthancFramework/Sources/Compression/ZipReader.cpp --- a/OrthancFramework/Sources/Compression/ZipReader.cpp Tue Dec 08 16:48:58 2020 +0100 +++ b/OrthancFramework/Sources/Compression/ZipReader.cpp Tue Dec 08 18:07:12 2020 +0100 @@ -36,7 +36,8 @@ #endif #if defined(_MSC_VER) -# include // Definition of ssize_t +# include // Definition of SSIZE_T +typedef SSIZE_T ssize_t; #endif #include @@ -91,7 +92,7 @@ } pos_ += s; - return s; + return static_cast(s); } } @@ -318,7 +319,8 @@ filename.resize(info.size_filename); if (!filename.empty() && - unzGetCurrentFileInfo64(pimpl_->unzip_, &info, &filename[0], filename.size(), NULL, 0, NULL, 0) != 0) + unzGetCurrentFileInfo64(pimpl_->unzip_, &info, &filename[0], + static_cast(filename.size()), NULL, 0, NULL, 0) != 0) { throw OrthancException(ErrorCode_BadFileFormat); } @@ -329,7 +331,8 @@ { if (unzOpenCurrentFile(pimpl_->unzip_) == 0) { - bool success = (unzReadCurrentFile(pimpl_->unzip_, &content[0], content.size()) != 0); + bool success = (unzReadCurrentFile(pimpl_->unzip_, &content[0], + static_cast(content.size())) != 0); if (unzCloseCurrentFile(pimpl_->unzip_) != 0 || !success) diff -r 074f37013186 -r 4301722b3225 OrthancFramework/Sources/HttpServer/MultipartStreamReader.cpp --- a/OrthancFramework/Sources/HttpServer/MultipartStreamReader.cpp Tue Dec 08 16:48:58 2020 +0100 +++ b/OrthancFramework/Sources/HttpServer/MultipartStreamReader.cpp Tue Dec 08 18:07:12 2020 +0100 @@ -29,9 +29,6 @@ #include #include -#if defined(_MSC_VER) -# include // Definition of ssize_t -#endif namespace Orthanc {