diff options
author | aprudaev <aprudaev@yandex-team.ru> | 2022-02-10 16:49:58 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:58 +0300 |
commit | 29e66fe2ab37743577f88e6ab770defc4e6c1002 (patch) | |
tree | 332323481b37f79cf521451582f724fb13a7143a /util | |
parent | 66f1a2f0600877a21fcc76f83c52904a58425f78 (diff) | |
download | ydb-29e66fe2ab37743577f88e6ab770defc4e6c1002.tar.gz |
Restoring authorship annotation for <aprudaev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util')
-rw-r--r-- | util/draft/datetime.h | 2 | ||||
-rw-r--r-- | util/generic/hash.h | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/util/draft/datetime.h b/util/draft/datetime.h index 8a387ea6f1b..616fb848d0d 100644 --- a/util/draft/datetime.h +++ b/util/draft/datetime.h @@ -173,7 +173,7 @@ struct TMonth { TMonth operator-(ui16 n) { if (n <= Month) { - return TMonth(Year, Month - (ui8)n); + return TMonth(Year, Month - (ui8)n); } else { n -= Month; return (n % 12) ? TMonth(Year - 1 - (n / 12), 12 - (n % 12)) : TMonth(Year - (n / 12), 0); diff --git a/util/generic/hash.h b/util/generic/hash.h index e46db21fa97..bd99c10dcef 100644 --- a/util/generic/hash.h +++ b/util/generic/hash.h @@ -1180,7 +1180,7 @@ template <class OtherKey> typename THashTable<V, K, HF, Ex, Eq, A>::size_type THashTable<V, K, HF, Ex, Eq, A>::erase_one(const OtherKey& key) { const size_type n = bkt_num_key(key); node* first = buckets[n]; - + if (first) { node* cur = first; node* next = cur->next; @@ -1201,11 +1201,11 @@ typename THashTable<V, K, HF, Ex, Eq, A>::size_type THashTable<V, K, HF, Ex, Eq, delete_node(first); return 1; } - } + } return 0; -} - -template <class V, class K, class HF, class Ex, class Eq, class A> +} + +template <class V, class K, class HF, class Ex, class Eq, class A> void THashTable<V, K, HF, Ex, Eq, A>::erase(const iterator& it) { if (node* const p = it.cur) { const size_type n = bkt_num(p->val); |