aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/codecs/huffman_codec.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/codecs/huffman_codec.cpp
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/codecs/huffman_codec.cpp')
-rw-r--r--library/cpp/codecs/huffman_codec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/codecs/huffman_codec.cpp b/library/cpp/codecs/huffman_codec.cpp
index 650fe7cdfd..ff618fd955 100644
--- a/library/cpp/codecs/huffman_codec.cpp
+++ b/library/cpp/codecs/huffman_codec.cpp
@@ -496,10 +496,10 @@ namespace NCodecs {
: Original(codec)
{
CacheEntries.resize(1 << CACHE_BITS_COUNT);
- DecodeCache.reserve(CacheEntries.size() * 2);
+ DecodeCache.reserve(CacheEntries.size() * 2);
char buffer[2];
TBuffer decoded;
- for (size_t i = 0; i < CacheEntries.size(); i++) {
+ for (size_t i = 0; i < CacheEntries.size(); i++) {
buffer[1] = i >> 8;
buffer[0] = i;
NBitIO::TBitInput bin(buffer, buffer + sizeof(buffer));