try fix 32bit
This commit is contained in:
parent
964bb0ffb9
commit
419b63b02e
@ -11,8 +11,8 @@ using ID32 = std::array<uint8_t, 32>;
|
|||||||
|
|
||||||
template<>
|
template<>
|
||||||
struct std::hash<ID32> {
|
struct std::hash<ID32> {
|
||||||
std::size_t operator()(ID32 const& s) const noexcept {
|
std::uint64_t operator()(ID32 const& s) const noexcept {
|
||||||
static_assert(sizeof(size_t) == 8);
|
//static_assert(sizeof(size_t) == 8);
|
||||||
// TODO: maybe shuffle the indices a bit
|
// TODO: maybe shuffle the indices a bit
|
||||||
return
|
return
|
||||||
(static_cast<size_t>(s[0]) << 8*0) |
|
(static_cast<size_t>(s[0]) << 8*0) |
|
||||||
|
Loading…
Reference in New Issue
Block a user