comparison Core/HttpServer/HttpStreamTranscoder.cpp @ 1545:33d34bc4ac15

fix msvc warnings
author jodogne
date Thu, 13 Aug 2015 21:02:31 +0200
parents 096a8af528c9
children e9325f3ac496
comparison
equal deleted inserted replaced
1544:4d0e2c38d15b 1545:33d34bc4ac15
184 if (!ok) 184 if (!ok)
185 { 185 {
186 throw OrthancException(ErrorCode_CorruptedFile); 186 throw OrthancException(ErrorCode_CorruptedFile);
187 } 187 }
188 188
189 size_t remaining = bytesToSkip_ - skipped_; 189 size_t remaining = static_cast<size_t>(bytesToSkip_ - skipped_);
190 size_t s = source_.GetChunkSize(); 190 size_t s = source_.GetChunkSize();
191 191
192 if (s < remaining) 192 if (s < remaining)
193 { 193 {
194 skipped_ += s; 194 skipped_ += s;
240 { 240 {
241 return uncompressed_->GetChunkSize(); 241 return uncompressed_->GetChunkSize();
242 } 242 }
243 else 243 else
244 { 244 {
245 return source_.GetChunkSize() - currentChunkOffset_; 245 return static_cast<size_t>(source_.GetChunkSize() - currentChunkOffset_);
246 } 246 }
247 } 247 }
248 } 248 }