diff --git a/docs/CONTRIBUTORS b/docs/CONTRIBUTORS index c9ead87f7..a6f720cf4 100644 --- a/docs/CONTRIBUTORS +++ b/docs/CONTRIBUTORS @@ -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 diff --git a/src/V3Hash.h b/src/V3Hash.h index 3263e2208..088de7b88 100644 --- a/src/V3Hash.h +++ b/src/V3Hash.h @@ -46,8 +46,8 @@ public: : V3Hash{static_cast(val)} {} explicit V3Hash(int64_t val) : V3Hash{static_cast(val)} {} - explicit V3Hash(void* val) - : V3Hash{reinterpret_cast(val)} {} + explicit V3Hash(const void* val) + : V3Hash{static_cast(reinterpret_cast(val))} {} // METHODS uint32_t value() const VL_MT_SAFE { return m_value; } diff --git a/src/V3OrderMoveGraph.h b/src/V3OrderMoveGraph.h index bab6ac630..7d22320b8 100644 --- a/src/V3OrderMoveGraph.h +++ b/src/V3OrderMoveGraph.h @@ -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(key.m_domainp)}; - hash += reinterpret_cast(key.m_scopep); + V3Hash hash{key.m_domainp}; + hash += key.m_scopep; return hash.value(); } };