From e52934ce615177b5a1fb2564e9ca5a4fcca8231e Mon Sep 17 00:00:00 2001 From: ltrk2 <107155950+ltrk2@users.noreply.github.com> Date: Mon, 28 Aug 2023 08:38:48 -0700 Subject: [PATCH] Make UInt128TrivialHash endianness-independent --- src/Common/HashTable/Hash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/HashTable/Hash.h b/src/Common/HashTable/Hash.h index 49ab875297c9..6bc5884e5bdf 100644 --- a/src/Common/HashTable/Hash.h +++ b/src/Common/HashTable/Hash.h @@ -402,7 +402,7 @@ struct UInt128HashCRC32 : public UInt128Hash {}; struct UInt128TrivialHash { - size_t operator()(UInt128 x) const { return x.items[0]; } + size_t operator()(UInt128 x) const { return x.items[UInt128::_impl::little(0)]; } }; struct UUIDTrivialHash