aboutsummaryrefslogtreecommitdiffstats
path: root/tools/rescompressor/main.cpp
diff options
context:
space:
mode:
authordanlark <danlark@yandex-team.ru>2022-02-10 16:46:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:10 +0300
commitbaa58daefa91fde4b4769facdbd2903763b9c6a8 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /tools/rescompressor/main.cpp
parent3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff)
downloadydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'tools/rescompressor/main.cpp')
-rw-r--r--tools/rescompressor/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/rescompressor/main.cpp b/tools/rescompressor/main.cpp
index 1dfad1fe28..9aba1002c5 100644
--- a/tools/rescompressor/main.cpp
+++ b/tools/rescompressor/main.cpp
@@ -51,17 +51,17 @@ private:
void WriteIncBin(TStringBuf constname, TStringBuf filename, const TString& data) {
AsmOut << AsmPrefix << constname << ":\nincbin \"" << Basename(filename) << "\"\n";
AsmOut << ".end:\n";
- TFixedBufferFileOutput out(filename.data());
+ TFixedBufferFileOutput out(filename.data());
out << data;
}
void WriteRaw(TStringBuf constname, const TString& data) {
AsmOut << AsmPrefix << constname << ":\ndb ";
- for (size_t i = 0; i < data.size() - 1; i++) {
+ for (size_t i = 0; i < data.size() - 1; i++) {
unsigned char c = static_cast<unsigned char>(data[i]);
AsmOut << IntToString<10, unsigned char>(c) << ",";
}
- AsmOut << IntToString<10, unsigned char>(static_cast<unsigned char>(data[data.size() - 1])) << "\n";
+ AsmOut << IntToString<10, unsigned char>(static_cast<unsigned char>(data[data.size() - 1])) << "\n";
AsmOut << ".end:\n";
}
@@ -131,7 +131,7 @@ int main(int argc, char** argv) {
else {
TUnbufferedFileInput inp(argv[ind]);
TString data = inp.ReadAll();
- compressed = Compress(TStringBuf(data.data(), data.size()));
+ compressed = Compress(TStringBuf(data.data(), data.size()));
raw = false;
}
ind++;