Mercurial > hg > orthanc
comparison Core/Compression/GzipCompressor.cpp @ 1545:33d34bc4ac15
fix msvc warnings
author | jodogne |
---|---|
date | Thu, 13 Aug 2015 21:02:31 +0200 |
parents | fe07f82d83d3 |
children | b1291df2f780 |
comparison
equal
deleted
inserted
replaced
1544:4d0e2c38d15b | 1545:33d34bc4ac15 |
---|---|
196 uncompressedSize = GuessUncompressedSize(compressed, compressedSize); | 196 uncompressedSize = GuessUncompressedSize(compressed, compressedSize); |
197 } | 197 } |
198 | 198 |
199 try | 199 try |
200 { | 200 { |
201 uncompressed.resize(uncompressedSize); | 201 uncompressed.resize(static_cast<size_t>(uncompressedSize)); |
202 } | 202 } |
203 catch (...) | 203 catch (...) |
204 { | 204 { |
205 throw OrthancException(ErrorCode_NotEnoughMemory); | 205 throw OrthancException(ErrorCode_NotEnoughMemory); |
206 } | 206 } |