From 8532f317b3440154b421b1e8b8b004ead28f847e Mon Sep 17 00:00:00 2001 From: weidai Date: Sat, 24 Jul 2010 05:55:22 +0000 Subject: add support for AES-NI and CLMUL instruction sets in AES and GMAC/GCM git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@508 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- files.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'files.cpp') diff --git a/files.cpp b/files.cpp index 6a29ed5..453b562 100644 --- a/files.cpp +++ b/files.cpp @@ -95,7 +95,7 @@ size_t FileStore::TransferTo2(BufferedTransformation &target, lword &transferByt m_stream->read((char *)m_space, (unsigned int)STDMIN(size, (lword)spaceSize)); } - m_len = m_stream->gcount(); + m_len = (size_t)m_stream->gcount(); size_t blockedBytes; output: blockedBytes = target.ChannelPutModifiable2(channel, m_space, m_len, 0, blocking); @@ -242,7 +242,7 @@ size_t FileSink::Put2(const byte *inString, size_t length, int messageEnd, bool size = numeric_limits::max(); m_stream->write((const char *)inString, size); inString += size; - length -= size; + length -= (size_t)size; } if (messageEnd) -- cgit v1.2.1