try fix 32bit

This commit is contained in:
Green Sky 2024-10-20 16:11:24 +02:00
parent 964bb0ffb9
commit 419b63b02e
No known key found for this signature in database

View File

@ -11,8 +11,8 @@ using ID32 = std::array<uint8_t, 32>;
template<>
struct std::hash<ID32> {
std::size_t operator()(ID32 const& s) const noexcept {
static_assert(sizeof(size_t) == 8);
std::uint64_t operator()(ID32 const& s) const noexcept {
//static_assert(sizeof(size_t) == 8);
// TODO: maybe shuffle the indices a bit
return
(static_cast<size_t>(s[0]) << 8*0) |