From 3d8d737aaf765ce2aa630ffa612ed946d726214c Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Thu, 21 Sep 2023 12:19:17 +0200 Subject: [PATCH] Fix use of bitwise and instead of logical one. --- anabatic/src/Dijkstra.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/anabatic/src/Dijkstra.cpp b/anabatic/src/Dijkstra.cpp index 94f74b17..fda73355 100644 --- a/anabatic/src/Dijkstra.cpp +++ b/anabatic/src/Dijkstra.cpp @@ -690,10 +690,10 @@ namespace Anabatic { bool Vertex::isH () const { GCell* gcell = getGCell(); - if (gcell->isDevice()) return isiHorizontal(); - else if ((gcell->isHChannel())||(gcell->isHRail())) return true; - else if (gcell->isStrut()| gcell->isMatrix() ) return ((gcell->getWidth() > gcell->getHeight())||(gcell->getWidth() == gcell->getHeight())); - else return false; + if ( gcell->isDevice()) return isiHorizontal(); + else if ((gcell->isHChannel()) or (gcell->isHRail())) return true; + else if ( gcell->isStrut() or gcell->isMatrix()) return ((gcell->getWidth() > gcell->getHeight())||(gcell->getWidth() == gcell->getHeight())); + else return false; }