summaryrefslogtreecommitdiff
path: root/zdeflate.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-30 13:07:33 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-30 13:07:33 -0400
commit77206baf56e6feb111f54678038307ac216128d5 (patch)
tree54f85d3fd471860a2d533a7acb30a1d9cb4d6897 /zdeflate.cpp
parent7ad12ab5b05eb2ee595e8900a5d2d101740c7a94 (diff)
downloadcryptopp-git-77206baf56e6feb111f54678038307ac216128d5.tar.gz
Whitespace checkin
Diffstat (limited to 'zdeflate.cpp')
-rw-r--r--zdeflate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zdeflate.cpp b/zdeflate.cpp
index b12de1a0..9b0aea03 100644
--- a/zdeflate.cpp
+++ b/zdeflate.cpp
@@ -668,11 +668,11 @@ void Deflator::EncodeBlock(bool eof, unsigned int blockType)
m_literalCounts[256] = 1;
HuffmanEncoder::GenerateCodeLengths(literalCodeLengths, 15, m_literalCounts, 286);
m_dynamicLiteralEncoder.Initialize(literalCodeLengths, 286);
- unsigned int hlit = (unsigned int)(find_if(RevIt(literalCodeLengths.end()), RevIt(literalCodeLengths.begin()+257), bind2nd(not_equal_to<unsigned int>(), 0)).base() - (literalCodeLengths.begin()+257));
+ unsigned int hlit = (unsigned int)(find_if (RevIt(literalCodeLengths.end()), RevIt(literalCodeLengths.begin()+257), bind2nd(not_equal_to<unsigned int>(), 0)).base() - (literalCodeLengths.begin()+257));
HuffmanEncoder::GenerateCodeLengths(distanceCodeLengths, 15, m_distanceCounts, 30);
m_dynamicDistanceEncoder.Initialize(distanceCodeLengths, 30);
- unsigned int hdist = (unsigned int)(find_if(RevIt(distanceCodeLengths.end()), RevIt(distanceCodeLengths.begin()+1), bind2nd(not_equal_to<unsigned int>(), 0)).base() - (distanceCodeLengths.begin()+1));
+ unsigned int hdist = (unsigned int)(find_if (RevIt(distanceCodeLengths.end()), RevIt(distanceCodeLengths.begin()+1), bind2nd(not_equal_to<unsigned int>(), 0)).base() - (distanceCodeLengths.begin()+1));
SecBlockWithHint<unsigned int, 286+30> combinedLengths(hlit+257+hdist+1);
memcpy(combinedLengths, literalCodeLengths, (hlit+257)*sizeof(unsigned int));