mirror of
https://github.com/verilator/verilator.git
synced 2025-02-02 03:34:05 +00:00
Fix older GCC compiler error.
This commit is contained in:
parent
a57826b125
commit
ae448e5ef9
@ -55,6 +55,12 @@ inline size_t vl_hash_bytes(const void* vbufp, size_t nbytes) {
|
|||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <> inline size_t vl_hash<int>::operator()(const int& k) const { return k; }
|
||||||
|
|
||||||
|
template <> inline bool vl_equal_to<int>::operator()(const int& a, const int& b) const {
|
||||||
|
return a == b;
|
||||||
|
}
|
||||||
|
|
||||||
template <> inline size_t vl_hash<unsigned int>::operator()(const unsigned int& k) const {
|
template <> inline size_t vl_hash<unsigned int>::operator()(const unsigned int& k) const {
|
||||||
return k;
|
return k;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user