aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/comptable
diff options
context:
space:
mode:
authordanlark <danlark@yandex-team.ru>2022-02-10 16:46:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:08 +0300
commit3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch)
tree26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /library/cpp/comptable
parentcb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff)
downloadydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/comptable')
-rw-r--r--library/cpp/comptable/comptable.cpp8
-rw-r--r--library/cpp/comptable/usage/usage.cpp2
-rw-r--r--library/cpp/comptable/ut/comptable_ut.cpp2
3 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/comptable/comptable.cpp b/library/cpp/comptable/comptable.cpp
index 8a92d4d1aa..add15d8cec 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 9997c83686..7670d15913 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 5901d0246f..cd5b507176 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) {