Skip to content

Commit a800530

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 6c1334f commit a800530

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
@@ -334,7 +334,7 @@ bool DetailedGlobalSwap::generate(Node* ndi)
334334
// Position target so center of cell at center of box.
335335
DbuX xj{(int) std::floor(0.5 * (bbox.xMin() + bbox.xMax())
336336
- 0.5 * ndi->getWidth().v)};
337-
DbuY yj{(int) std::floor(0.5 * (bbox.yMin() + bbox.yMax())
337+
DbuY yj{(int) std::floor((0.5 * (bbox.yMin() + bbox.yMax()))
338338
- (0.5 * ndi->getHeight().v))};
339339

340340
// Row and segment for the destination.

0 commit comments

Comments
 (0)