From d5ebf62bed594d1fe6ab616a6bbcbcf0a5892d47 Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 12 Jul 2005 04:23:32 +0000 Subject: 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 --- crc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crc.cpp') diff --git a/crc.cpp b/crc.cpp index bb3425d..10c25c2 100644 --- a/crc.cpp +++ b/crc.cpp @@ -122,7 +122,7 @@ CRC32::CRC32() Reset(); } -void CRC32::Update(const byte *s, unsigned int n) +void CRC32::Update(const byte *s, size_t n) { word32 crc = m_crc; @@ -146,12 +146,12 @@ void CRC32::Update(const byte *s, unsigned int n) m_crc = crc; } -void CRC32::TruncatedFinal(byte *hash, unsigned int size) +void CRC32::TruncatedFinal(byte *hash, size_t size) { ThrowIfInvalidTruncatedSize(size); m_crc ^= CRC32_NEGL; - for (unsigned int i=0; i