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 | 61134a826cdc637b34b9fc66427e24dd061d4bd1 (patch) | |
tree | ab7fbbf3253d4c0e2793218f09378908beb025fb | |
parent | a0b7946152988b60c6b4e1070d8eb6c3b944a6a5 (diff) | |
download | ydb-61134a826cdc637b34b9fc66427e24dd061d4bd1.tar.gz |
Restoring authorship annotation for <egorkudr1@yandex-team.ru>. Commit 2 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 d2ca12f6c8..02efb4049b 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> |