3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-13 04:28:18 +00:00

Merge pull request #4221 from povik/const-hash-fix

rtlil: Fix `Const` hashing omission
This commit is contained in:
N. Engelhardt 2024-02-19 16:40:46 +01:00 committed by GitHub
commit 63d256dc83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -712,7 +712,7 @@ struct RTLIL::Const
inline unsigned int hash() const { inline unsigned int hash() const {
unsigned int h = mkhash_init; unsigned int h = mkhash_init;
for (auto b : bits) for (auto b : bits)
mkhash(h, b); h = mkhash(h, b);
return h; return h;
} }
}; };