Fix V3Hash MacOS ambiguity again (#6350)
This commit is contained in:
parent
4eb030717a
commit
2aa260a03b
|
|
@ -38,8 +38,8 @@ Chykon
|
|||
Congcong Cai
|
||||
Conor McCullough
|
||||
Dan Petrisko
|
||||
Danny Oler
|
||||
Daniel Bates
|
||||
Danny Oler
|
||||
Dave Sargeant
|
||||
David Horton
|
||||
David Ledger
|
||||
|
|
@ -144,6 +144,7 @@ Krzysztof Obłonczek
|
|||
Krzysztof Starecki
|
||||
Krzysztof Sychla
|
||||
Kuba Ober
|
||||
Lan Zongwei
|
||||
Larry Doolittle
|
||||
Liam Braun
|
||||
Luca Colagrande
|
||||
|
|
|
|||
|
|
@ -46,8 +46,8 @@ public:
|
|||
: V3Hash{static_cast<uint32_t>(val)} {}
|
||||
explicit V3Hash(int64_t val)
|
||||
: V3Hash{static_cast<uint64_t>(val)} {}
|
||||
explicit V3Hash(void* val)
|
||||
: V3Hash{reinterpret_cast<uintptr_t>(val)} {}
|
||||
explicit V3Hash(const void* val)
|
||||
: V3Hash{static_cast<uint64_t>(reinterpret_cast<uintptr_t>(val))} {}
|
||||
|
||||
// METHODS
|
||||
uint32_t value() const VL_MT_SAFE { return m_value; }
|
||||
|
|
|
|||
|
|
@ -111,8 +111,8 @@ class OrderMoveDomScope final {
|
|||
struct Hash final {
|
||||
size_t operator()(const DomScopeMapKey& key) const {
|
||||
// cppcheck-suppress unreadVariable // cppcheck bug
|
||||
V3Hash hash{reinterpret_cast<uint64_t>(key.m_domainp)};
|
||||
hash += reinterpret_cast<uint64_t>(key.m_scopep);
|
||||
V3Hash hash{key.m_domainp};
|
||||
hash += key.m_scopep;
|
||||
return hash.value();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue