diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2019-10-20 10:03:37 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2019-10-20 10:03:37 +0200 |
commit | 847910d9864bbb75b7b6930b2c51bb8f5d705d5a (patch) | |
tree | 2b2c9702c9974fcc0fc316d9bdb497f8cf771884 /ecp5/archdefs.h | |
parent | e9ae0cf7ce664f03b1810dbe21fa82100c7b58c3 (diff) | |
download | nextpnr-847910d9864bbb75b7b6930b2c51bb8f5d705d5a.tar.gz nextpnr-847910d9864bbb75b7b6930b2c51bb8f5d705d5a.tar.bz2 nextpnr-847910d9864bbb75b7b6930b2c51bb8f5d705d5a.zip |
type needs to be part of hash for GroupId
Diffstat (limited to 'ecp5/archdefs.h')
-rw-r--r-- | ecp5/archdefs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ecp5/archdefs.h b/ecp5/archdefs.h index 67c016cc..d155d672 100644 --- a/ecp5/archdefs.h +++ b/ecp5/archdefs.h @@ -224,7 +224,9 @@ template <> struct hash<NEXTPNR_NAMESPACE_PREFIX GroupId> { std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX GroupId &group) const noexcept { - std::size_t seed = std::hash<NEXTPNR_NAMESPACE_PREFIX Location>()(group.location); + std::size_t seed = 0; + boost::hash_combine(seed, hash<int>()(group.type)); + boost::hash_combine(seed, hash<NEXTPNR_NAMESPACE_PREFIX Location>()(group.location)); return seed; } }; |