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 | 042dfdfd1388209ce3aa06dca56bd52ec63d40b2 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util | |
parent | 29e66fe2ab37743577f88e6ab770defc4e6c1002 (diff) | |
download | ydb-042dfdfd1388209ce3aa06dca56bd52ec63d40b2.tar.gz |
Restoring authorship annotation for <aprudaev@yandex-team.ru>. Commit 2 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 616fb848d0..8a387ea6f1 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 bd99c10dce..e46db21fa9 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); |