aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora-sumin <a-sumin@yandex-team.ru>2022-02-10 16:52:03 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:52:03 +0300
commit6b6756e731b3bcb318b73de6fd52bd936ec756ee (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb
parent68c9890b02ba56ecb22af49ad19ec70a71dd2a08 (diff)
downloadydb-6b6756e731b3bcb318b73de6fd52bd936ec756ee.tar.gz
Restoring authorship annotation for <a-sumin@yandex-team.ru>. Commit 2 of 2.
-rw-r--r--util/digest/multi.h2
-rw-r--r--util/digest/multi_ut.cpp10
2 files changed, 6 insertions, 6 deletions
diff --git a/util/digest/multi.h b/util/digest/multi.h
index 0b60f379c7..8e4597c9dc 100644
--- a/util/digest/multi.h
+++ b/util/digest/multi.h
@@ -10,5 +10,5 @@ constexpr size_t MultiHash(const TOne& one) noexcept {
}
template <typename THead, typename... TTail>
constexpr size_t MultiHash(const THead& head, const TTail&... tail) noexcept {
- return CombineHashes(MultiHash(tail...), THash<THead>()(head));
+ return CombineHashes(MultiHash(tail...), THash<THead>()(head));
}
diff --git a/util/digest/multi_ut.cpp b/util/digest/multi_ut.cpp
index cd9edef5db..dff64ff0cc 100644
--- a/util/digest/multi_ut.cpp
+++ b/util/digest/multi_ut.cpp
@@ -8,7 +8,7 @@ class TMultiHashTest: public TTestBase {
UNIT_TEST_SUITE(TMultiHashTest);
UNIT_TEST(TestStrInt)
UNIT_TEST(TestIntStr)
- UNIT_TEST(TestSimpleCollision)
+ UNIT_TEST(TestSimpleCollision)
UNIT_TEST(TestTypes)
UNIT_TEST_SUITE_END();
@@ -20,10 +20,10 @@ private:
inline void TestIntStr() {
UNIT_ASSERT_EQUAL(MultiHash(static_cast<int>(123), TString("1234567")), static_cast<size_t>(ULL(9973288649881090712)));
}
-
- inline void TestSimpleCollision() {
- UNIT_ASSERT_UNEQUAL(MultiHash(1, 1, 0), MultiHash(2, 2, 0));
- }
+
+ inline void TestSimpleCollision() {
+ UNIT_ASSERT_UNEQUAL(MultiHash(1, 1, 0), MultiHash(2, 2, 0));
+ }
inline void TestTypes() {
UNIT_ASSERT_EQUAL(MultiHash("aaa", (ui64)123), MultiHash("aaa", 123));