aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/str.cpp
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /util/stream/str.cpp
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
downloadydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/stream/str.cpp')
-rw-r--r--util/stream/str.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/stream/str.cpp b/util/stream/str.cpp
index 9622a1a254..13f0e8ef28 100644
--- a/util/stream/str.cpp
+++ b/util/stream/str.cpp
@@ -5,8 +5,8 @@ static constexpr size_t MIN_BUFFER_GROW_SIZE = 16;
TStringInput::~TStringInput() = default;
size_t TStringInput::DoNext(const void** ptr, size_t len) {
- len = Min(len, S_->size() - Pos_);
- *ptr = S_->data() + Pos_;
+ len = Min(len, S_->size() - Pos_);
+ *ptr = S_->data() + Pos_;
Pos_ += len;
return len;
}