aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/archdefs.h
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-07-08 12:48:25 +0200
committerDavid Shah <davey1576@gmail.com>2018-07-11 10:42:09 +0200
commit59cb1600d9995eb52af41caea7bc364dcf47ea35 (patch)
treebc23f8ff53aa5eeb6283e58e6f4f9554221f81cc /ecp5/archdefs.h
parent93f379a488ae9f4c103c6d61cad49fba8012bc5a (diff)
downloadnextpnr-59cb1600d9995eb52af41caea7bc364dcf47ea35.tar.gz
nextpnr-59cb1600d9995eb52af41caea7bc364dcf47ea35.tar.bz2
nextpnr-59cb1600d9995eb52af41caea7bc364dcf47ea35.zip
ecp5: Fixing arch bugs
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ecp5/archdefs.h')
-rw-r--r--ecp5/archdefs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecp5/archdefs.h b/ecp5/archdefs.h
index b05ac22c..4facc786 100644
--- a/ecp5/archdefs.h
+++ b/ecp5/archdefs.h
@@ -71,7 +71,7 @@ struct Location
Location(const Location &loc) : x(loc.x), y(loc.y){};
bool operator==(const Location &other) const { return x == other.x && y == other.y; }
- bool operator!=(const Location &other) const { return x != other.x || y == other.y; }
+ bool operator!=(const Location &other) const { return x != other.x || y != other.y; }
};
inline Location operator+(const Location &a, const Location &b) { return Location(a.x + b.x, a.y + b.y); }