File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments