mirror of https://github.com/YosysHQ/yosys.git
hashlib: fix hash_obj_ops discarding hash value
This commit is contained in:
parent
6225abec71
commit
a2805b15c9
|
@ -265,7 +265,7 @@ struct hash_obj_ops {
|
||||||
template<typename T>
|
template<typename T>
|
||||||
static inline Hasher hash_into(const T *a, Hasher h) {
|
static inline Hasher hash_into(const T *a, Hasher h) {
|
||||||
if (a)
|
if (a)
|
||||||
a->hash_into(h);
|
h = a->hash_into(h);
|
||||||
else
|
else
|
||||||
h.eat(0);
|
h.eat(0);
|
||||||
return h;
|
return h;
|
||||||
|
|
Loading…
Reference in New Issue