Skip to content

Commit

Permalink
cts: stop infinite recursion when length is not found
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Liberty <[email protected]>
  • Loading branch information
maliberty committed May 25, 2023
1 parent d713f83 commit c5394c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cts/src/HTreeBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,9 @@ unsigned HTreeBuilder::computeMinDelaySegment(const unsigned length,
}

if (minKey == std::numeric_limits<unsigned>::max()) {
if (tolerance >= MAX_TOLERANCE) {
return minKey;
}
// Increasing tolerance
return computeMinDelaySegment(length,
inputSlew,
Expand Down

0 comments on commit c5394c2

Please sign in to comment.