summaryrefslogtreecommitdiff
path: root/gzip.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2005-07-12 04:23:32 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2005-07-12 04:23:32 +0000
commitd5ebf62bed594d1fe6ab616a6bbcbcf0a5892d47 (patch)
tree4b03760892a97a9bc452ebe8b7793bbebd402ad4 /gzip.cpp
parentfa39f51809b4da54a5c2adb3e183b1a625cefb92 (diff)
downloadcryptopp-d5ebf62bed594d1fe6ab616a6bbcbcf0a5892d47.tar.gz
port to MSVC .NET 2005 beta 2
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@198 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'gzip.cpp')
-rw-r--r--gzip.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gzip.cpp b/gzip.cpp
index 2cfee9c..09e420a 100644
--- a/gzip.cpp
+++ b/gzip.cpp
@@ -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()