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
1 changed files with 1 additions and 1 deletions

View File

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