From 59cb1600d9995eb52af41caea7bc364dcf47ea35 Mon Sep 17 00:00:00 2001 From: David Shah Date: Sun, 8 Jul 2018 12:48:25 +0200 Subject: ecp5: Fixing arch bugs Signed-off-by: David Shah --- ecp5/archdefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ecp5/archdefs.h') 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); } -- cgit v1.2.3