diff options
author | egorkudr1 <egorkudr1@yandex-team.ru> | 2022-02-10 16:51:44 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:51:44 +0300 |
commit | a0b7946152988b60c6b4e1070d8eb6c3b944a6a5 (patch) | |
tree | 19a5fedb44de1b6c23d3d21e6da59fd5ba1af389 | |
parent | 2c9aa84a37060f98639ea3e4d0a9a4010be436c9 (diff) | |
download | ydb-a0b7946152988b60c6b4e1070d8eb6c3b944a6a5.tar.gz |
Restoring authorship annotation for <egorkudr1@yandex-team.ru>. Commit 1 of 2.
-rw-r--r-- | util/ysaveload.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/util/ysaveload.h b/util/ysaveload.h index 02efb4049b..d2ca12f6c8 100644 --- a/util/ysaveload.h +++ b/util/ysaveload.h @@ -270,24 +270,24 @@ static inline void LoadArray(IInputStream* in, T* t, size_t len, TStorage& pool) } static inline void SaveSize(IOutputStream* rh, size_t len) { - if ((ui64)len < 0xffffffff) { - ::Save(rh, (ui32)len); - } else { - ::Save(rh, (ui32)0xffffffff); - ::Save(rh, (ui64)len); - } + if ((ui64)len < 0xffffffff) { + ::Save(rh, (ui32)len); + } else { + ::Save(rh, (ui32)0xffffffff); + ::Save(rh, (ui64)len); + } } static inline size_t LoadSize(IInputStream* rh) { - ui32 oldVerSize; - ui64 newVerSize; - ::Load(rh, oldVerSize); - if (oldVerSize != 0xffffffff) { - return oldVerSize; - } else { - ::Load(rh, newVerSize); - return newVerSize; - } + ui32 oldVerSize; + ui64 newVerSize; + ::Load(rh, oldVerSize); + if (oldVerSize != 0xffffffff) { + return oldVerSize; + } else { + ::Load(rh, newVerSize); + return newVerSize; + } } template <class C> |