diff options
author | weidai <weidai11@users.noreply.github.com> | 2005-07-12 04:23:32 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2005-07-12 04:23:32 +0000 |
commit | 1db8ea50840eb47f0f7d8f3c30d8e0916932ce90 (patch) | |
tree | 4b03760892a97a9bc452ebe8b7793bbebd402ad4 /gzip.cpp | |
parent | 31068bd68590654dc218bbb183a2ca71bb4af08b (diff) | |
download | cryptopp-git-1db8ea50840eb47f0f7d8f3c30d8e0916932ce90.tar.gz |
port to MSVC .NET 2005 beta 2
Diffstat (limited to 'gzip.cpp')
-rw-r--r-- | gzip.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -20,10 +20,10 @@ void Gzip::WritePrestreamHeader() AttachedTransformation()->Put(GZIP_OS_CODE); } -void Gzip::ProcessUncompressedData(const byte *inString, unsigned int length) +void Gzip::ProcessUncompressedData(const byte *inString, size_t length) { m_crc.Update(inString, length); - m_totalLen += length; + m_totalLen += (word32)length; } void Gzip::WritePoststreamTail() @@ -74,11 +74,11 @@ void Gunzip::ProcessPrestreamHeader() while (b); } -void Gunzip::ProcessDecompressedData(const byte *inString, unsigned int length) +void Gunzip::ProcessDecompressedData(const byte *inString, size_t length) { AttachedTransformation()->Put(inString, length); m_crc.Update(inString, length); - m_length += length; + m_length += (word32)length; } void Gunzip::ProcessPoststreamTail() |