Mercurial > hg > orthanc
diff Core/HttpServer/HttpStreamTranscoder.cpp @ 1545:33d34bc4ac15
fix msvc warnings
author | jodogne |
---|---|
date | Thu, 13 Aug 2015 21:02:31 +0200 |
parents | 096a8af528c9 |
children | e9325f3ac496 |
line wrap: on
line diff
--- a/Core/HttpServer/HttpStreamTranscoder.cpp Thu Aug 13 20:39:30 2015 +0200 +++ b/Core/HttpServer/HttpStreamTranscoder.cpp Thu Aug 13 21:02:31 2015 +0200 @@ -186,7 +186,7 @@ throw OrthancException(ErrorCode_CorruptedFile); } - size_t remaining = bytesToSkip_ - skipped_; + size_t remaining = static_cast<size_t>(bytesToSkip_ - skipped_); size_t s = source_.GetChunkSize(); if (s < remaining) @@ -242,7 +242,7 @@ } else { - return source_.GetChunkSize() - currentChunkOffset_; + return static_cast<size_t>(source_.GetChunkSize() - currentChunkOffset_); } } }