Skip to content

Commit a99ab8d

Browse files
committed
grt: clang-tidy
Signed-off-by: rafaelmoresco <[email protected]>
1 parent ac66605 commit a99ab8d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/grt/src/cugr/src/GridGraph.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -417,16 +417,13 @@ bool GridGraph::findODBAccessPoints(
417417
iterms->getInst()->getLocation(x, y);
418418
auto point = ap->getPoint();
419419
auto layer = ap->getLayer();
420-
const int ap_x = (point.getX() + x / amount_per_x >= x_size_)
420+
const int ap_x = ((point.getX() + x) / amount_per_x >= x_size_)
421421
? x_size_ - 1
422-
: point.getX() + x / amount_per_x;
423-
const int ap_y = (point.getY() + y / amount_per_y >= y_size_)
422+
: (point.getX() + x) / amount_per_x;
423+
const int ap_y = ((point.getY() + y) / amount_per_y >= y_size_)
424424
? y_size_ - 1
425-
: point.getY() + y / amount_per_y;
425+
: (point.getY() + y) / amount_per_y;
426426
const PointT selected_point = PointT(ap_x, ap_y);
427-
const PointT selected_point
428-
= PointT((point.getX() + x) / amount_per_x,
429-
(point.getY() + y) / amount_per_y);
430427
const int num_layer
431428
= ((layer->getNumber() - 2) > (getNumLayers() - 1))
432429
? getNumLayers() - 1

0 commit comments

Comments
 (0)