mirror of https://github.com/YosysHQ/yosys.git
Minor hashlib bugfix
This commit is contained in:
parent
3d9ff912c2
commit
a07f893a5f
|
@ -156,7 +156,7 @@ struct hash_obj_ops {
|
|||
}
|
||||
template<typename T>
|
||||
static inline unsigned int hash(const T *a) {
|
||||
return a->hash();
|
||||
return a ? a->hash() : 0;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue