diff options
author | myrtle <gatecat@ds0.me> | 2022-10-17 10:43:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 10:43:34 +0200 |
commit | c2dbaa2b11fbe66cb84e9424007fa836ecafc1d7 (patch) | |
tree | c331c0b629e848be782c021961cd51e17d925e2b /ice40/archdefs.h | |
parent | 0d1ea9e6ed471ca09c5908e0b39ab46139603372 (diff) | |
parent | 613d84fb720df2144293c468dfe8ab2d2faa624a (diff) | |
download | nextpnr-c2dbaa2b11fbe66cb84e9424007fa836ecafc1d7.tar.gz nextpnr-c2dbaa2b11fbe66cb84e9424007fa836ecafc1d7.tar.bz2 nextpnr-c2dbaa2b11fbe66cb84e9424007fa836ecafc1d7.zip |
Merge pull request #1035 from tyler274/patch-1
Correct Not Equal operator implementation in ice40
Diffstat (limited to 'ice40/archdefs.h')
-rw-r--r-- | ice40/archdefs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ice40/archdefs.h b/ice40/archdefs.h index 07b209f1..87924df0 100644 --- a/ice40/archdefs.h +++ b/ice40/archdefs.h @@ -97,7 +97,7 @@ struct GroupId int8_t x = 0, y = 0; bool operator==(const GroupId &other) const { return (type == other.type) && (x == other.x) && (y == other.y); } - bool operator!=(const GroupId &other) const { return (type != other.type) || (x != other.x) || (y == other.y); } + bool operator!=(const GroupId &other) const { return (type != other.type) || (x != other.x) || (y != other.y); } unsigned int hash() const { return mkhash(mkhash(x, y), int(type)); } }; |