Skip to content

Commit 38a487b

Browse files
Update src/gpl/src/routeBase.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: LucasYuki <[email protected]>
1 parent 0a87e53 commit 38a487b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gpl/src/routeBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ std::pair<bool, bool> RouteBase::routability(
666666
int idxY = std::min((gCell->dCy() - tg_->ly()) / tg_->tileSizeY(),
667667
tg_->tileCntY() - 1);
668668

669-
size_t index = idxY * tg_->tileCntX() + idxX;
669+
size_t index = (idxY * tg_->tileCntX()) + idxX;
670670
if (index >= tg_->tiles().size()) {
671671
continue;
672672
}

0 commit comments

Comments
 (0)