Skip to content

Commit

Permalink
Fix issue with Cell::get_contained_cells() utility function (#2873)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtramm committed Feb 15, 2024
1 parent bf33a9e commit 33c910d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,9 @@ struct ParentCellStack {
//! compute an instance for the provided distribcell index
int32_t compute_instance(int32_t distribcell_index) const
{
if (distribcell_index == C_NONE)
return 0;

int32_t instance = 0;
for (const auto& parent_cell : this->parent_cells_) {
auto& cell = model::cells[parent_cell.cell_index];
Expand Down

0 comments on commit 33c910d

Please sign in to comment.