diff options
| author | danlark <[email protected]> | 2022-02-10 16:46:10 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:10 +0300 |
| commit | baa58daefa91fde4b4769facdbd2903763b9c6a8 (patch) | |
| tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/comptable | |
| parent | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/comptable')
| -rw-r--r-- | library/cpp/comptable/comptable.cpp | 8 | ||||
| -rw-r--r-- | library/cpp/comptable/usage/usage.cpp | 2 | ||||
| -rw-r--r-- | library/cpp/comptable/ut/comptable_ut.cpp | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/comptable/comptable.cpp b/library/cpp/comptable/comptable.cpp index add15d8cecc..8a92d4d1aa6 100644 --- a/library/cpp/comptable/comptable.cpp +++ b/library/cpp/comptable/comptable.cpp @@ -96,11 +96,11 @@ namespace NCompTable { size_t i = 0; iterator.Visit(ui32(data.size())); for (; i + 3 < data.size(); i += 4) { - iterator.Visit(reinterpret_cast<const ui32*>(data.data() + i)[0]); + iterator.Visit(reinterpret_cast<const ui32*>(data.data() + i)[0]); } if (i != data.size()) { ui32 buffer[1] = {0}; - memcpy(buffer, data.data() + i, data.size() - i); + memcpy(buffer, data.data() + i, data.size() - i); iterator.Visit(buffer[0]); } } @@ -317,8 +317,8 @@ namespace NCompTable { if (dataBuf.empty()) { return; } - const ui8* src = reinterpret_cast<const ui8*>(dataBuf.data()); - ui64 border = dataBuf.size(); + const ui8* src = reinterpret_cast<const ui8*>(dataBuf.data()); + ui64 border = dataBuf.size(); ui32 len = 0; ui32 nullTerm = 1; if (HQ) { diff --git a/library/cpp/comptable/usage/usage.cpp b/library/cpp/comptable/usage/usage.cpp index 7670d159137..9997c83686a 100644 --- a/library/cpp/comptable/usage/usage.cpp +++ b/library/cpp/comptable/usage/usage.cpp @@ -26,7 +26,7 @@ void DoTest(const TCompressorTable& table, const TVector<TString>& lines) { compSize += compressed.size(); TStringBuf in(compressed.data(), compressed.size()); deCompressor.Decompress(in, &decompressed); - if (decompressed.size() != line.size() || memcmp(decompressed.data(), line.data(), decompressed.size())) { + if (decompressed.size() != line.size() || memcmp(decompressed.data(), line.data(), decompressed.size())) { Cout << i << "\n"; Cout << line << "\n" << TString(decompressed.data(), decompressed.size()) << "\n"; diff --git a/library/cpp/comptable/ut/comptable_ut.cpp b/library/cpp/comptable/ut/comptable_ut.cpp index cd5b5071768..5901d0246fb 100644 --- a/library/cpp/comptable/ut/comptable_ut.cpp +++ b/library/cpp/comptable/ut/comptable_ut.cpp @@ -28,7 +28,7 @@ void DoTest(const TCompressorTable& table, const TVector<TString>& lines) { compSize += compressed.size(); TStringBuf in(compressed.data(), compressed.size()); deCompressor.Decompress(in, &decompressed); - UNIT_ASSERT(decompressed.size() == line.size() && memcmp(decompressed.data(), line.data(), decompressed.size()) == 0); + UNIT_ASSERT(decompressed.size() == line.size() && memcmp(decompressed.data(), line.data(), decompressed.size()) == 0); } UNIT_ASSERT_EQUAL(origSize, 45491584); if (HQ) { |
