aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorTyler <tyler274port@gmail.com>2022-10-17 01:19:51 -0700
committerGitHub <noreply@github.com>2022-10-17 01:19:51 -0700
commit613d84fb720df2144293c468dfe8ab2d2faa624a (patch)
treec331c0b629e848be782c021961cd51e17d925e2b /ice40
parent0d1ea9e6ed471ca09c5908e0b39ab46139603372 (diff)
downloadnextpnr-613d84fb720df2144293c468dfe8ab2d2faa624a.tar.gz
nextpnr-613d84fb720df2144293c468dfe8ab2d2faa624a.tar.bz2
nextpnr-613d84fb720df2144293c468dfe8ab2d2faa624a.zip
Correct Not Equal operator implementation in ice40
I noticed this during my work reimplementing nextpnr, and it seems to be dead and wrong, or at least dead. Either way I think this is what was intended unless anyone can correct me.
Diffstat (limited to 'ice40')
-rw-r--r--ice40/archdefs.h2
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)); }
};