From 6527e3b6aedf399f2eff5244bff78da0c08f82a6 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Tue, 13 Nov 2018 16:01:30 -0800 Subject: [PATCH] [common] Fix typo in Loc::operator!=() --- common/nextpnr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/nextpnr.h b/common/nextpnr.h index 86e781ae..4434c438 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -191,7 +191,7 @@ struct Loc Loc(int x, int y, int z) : x(x), y(y), z(z) {} bool operator==(const Loc &other) const { return (x == other.x) && (y == other.y) && (z == other.z); } - bool operator!=(const Loc &other) const { return (x != other.x) || (y != other.y) || (z == other.z); } + bool operator!=(const Loc &other) const { return (x != other.x) || (y != other.y) || (z != other.z); } }; NEXTPNR_NAMESPACE_END