aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoregorkudr1 <egorkudr1@yandex-team.ru>2022-02-10 16:51:44 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:51:44 +0300
commit61134a826cdc637b34b9fc66427e24dd061d4bd1 (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb
parenta0b7946152988b60c6b4e1070d8eb6c3b944a6a5 (diff)
downloadydb-61134a826cdc637b34b9fc66427e24dd061d4bd1.tar.gz
Restoring authorship annotation for <egorkudr1@yandex-team.ru>. Commit 2 of 2.
-rw-r--r--util/ysaveload.h30
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>