Skip to content

Commit

Permalink
Make UInt128TrivialHash endianness-independent
Browse files Browse the repository at this point in the history
  • Loading branch information
ltrk2 committed Aug 28, 2023
1 parent a47ae63 commit e52934c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/HashTable/Hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e52934c

Please sign in to comment.