Skip to content

Commit fb75878

Browse files
committed
rsz: fix check on repair hold
Signed-off-by: Eder Monteiro <[email protected]>
1 parent ed062c4 commit fb75878

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rsz/src/RepairHold.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ bool RepairHold::repairHold(VertexSeq& ends,
405405
int pass = 1;
406406
while (worst_slack < hold_margin && progress && !resizer_->overMaxArea()
407407
&& inserted_buffer_count_ <= max_buffer_count && pass <= max_passes
408-
&& pass <= max_iterations) {
408+
&& (max_iterations < 0 || pass <= max_iterations)) {
409409
if (verbose || pass == 1) {
410410
printProgress(pass, false, false);
411411
}

0 commit comments

Comments
 (0)