diff options
author | agri <[email protected]> | 2022-02-10 16:48:12 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:12 +0300 |
commit | 2909866fbc652492b7d7cab3023cb19489dc4fd8 (patch) | |
tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /util/stream/input.cpp | |
parent | d3530b2692e400bd4d29bd4f07cafaee139164e7 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/stream/input.cpp')
-rw-r--r-- | util/stream/input.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/stream/input.cpp b/util/stream/input.cpp index 494ece8c258..6e8170f2f9f 100644 --- a/util/stream/input.cpp +++ b/util/stream/input.cpp @@ -128,21 +128,21 @@ size_t IInputStream::DoSkip(size_t sz) { return Load(alloca(sz), sz); } - TTempBuf buf; - size_t total = 0; + TTempBuf buf; + size_t total = 0; while (sz) { const size_t lresult = Read(buf.Data(), Min<size_t>(sz, buf.Size())); if (lresult == 0) { - return total; + return total; } - total += lresult; - sz -= lresult; + total += lresult; + sz -= lresult; } - - return total; + + return total; } TString IInputStream::ReadAll() { |