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.
This commit is contained in:
Tyler 2022-10-17 01:19:51 -07:00 committed by GitHub
parent 0d1ea9e6ed
commit 613d84fb72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ struct GroupId
int8_t x = 0, y = 0; 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); } 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)); } unsigned int hash() const { return mkhash(mkhash(x, y), int(type)); }
}; };