summaryrefslogtreecommitdiff
path: root/zdeflate.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-26 12:52:13 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-26 12:52:13 -0400
commit5db65c051bf016126fe14ebae164ad73e7b03fa9 (patch)
treeb6d74b90b6b7f9e55c2b80e56a3c776655a425fe /zdeflate.cpp
parent5eefa99e68f875f635a973c6407c30388148f3c5 (diff)
downloadcryptopp-git-5db65c051bf016126fe14ebae164ad73e7b03fa9.tar.gz
Cleared "conversion from 'const int' to 'CryptoPP::word16'" under MSVC
Diffstat (limited to 'zdeflate.cpp')
-rw-r--r--zdeflate.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/zdeflate.cpp b/zdeflate.cpp
index a4f20d45..8e76df35 100644
--- a/zdeflate.cpp
+++ b/zdeflate.cpp
@@ -289,7 +289,7 @@ void Deflator::Reset(bool forceReset)
m_detectSkip = 0;
// m_prev will be initialized automaticly in InsertString
- fill(m_head.begin(), m_head.end(), 0);
+ fill(m_head.begin(), m_head.end(), word16(0));
fill(m_literalCounts.begin(), m_literalCounts.end(), 0);
fill(m_distanceCounts.begin(), m_distanceCounts.end(), 0);
@@ -643,10 +643,10 @@ void Deflator::EncodeBlock(bool eof, unsigned int blockType)
if (blockType == STORED)
{
assert(m_blockStart + m_blockLength <= m_byteBuffer.size());
- assert(m_blockLength <= 0xffff);
+ assert(m_blockLength <= 65535);
FlushBitBuffer();
- AttachedTransformation()->PutWord16(m_blockLength, LITTLE_ENDIAN_ORDER);
- AttachedTransformation()->PutWord16(~m_blockLength, LITTLE_ENDIAN_ORDER);
+ AttachedTransformation()->PutWord16(static_cast<word16>(m_blockLength), LITTLE_ENDIAN_ORDER);
+ AttachedTransformation()->PutWord16(static_cast<word16>(~m_blockLength), LITTLE_ENDIAN_ORDER);
AttachedTransformation()->Put(m_byteBuffer + m_blockStart, m_blockLength);
}
else