Skip to content

Commit 7537979

Browse files
Update src/dpl/src/optimization/detailed_global_legacy.cxx
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: PrecisEDAnon <[email protected]>
1 parent 55e69c2 commit 7537979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dpl/src/optimization/detailed_global_legacy.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ bool DetailedGlobalSwap::generate(Node* ndi)
332332
int si = mgr_->getReverseCellToSegs(ndi->getId())[0]->getSegId();
333333

334334
// Position target so center of cell at center of box.
335-
DbuX xj{(int) std::floor(0.5 * (bbox.xMin() + bbox.xMax())
335+
DbuX xj{(int) std::floor((0.5 * (bbox.xMin() + bbox.xMax()))
336336
- (0.5 * ndi->getWidth().v))};
337337
DbuY yj{(int) std::floor((0.5 * (bbox.yMin() + bbox.yMax()))
338338
- (0.5 * ndi->getHeight().v))};

0 commit comments

Comments
 (0)