Skip to content

Commit c4b7226

Browse files
committed
fix: bug in shrink, thanks @rkuhn!
Signed-off-by: Stevan A <stevana@users.noreply.github.com>
1 parent 164a05a commit c4b7226

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

simulation/amaru-sim/src/simulator/shrink.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub fn shrink<A: Debug + Clone, B: Debug>(
5454
number_of_shrinks += 1;
5555
last_error = result;
5656
input = complement;
57-
n = n.max(2) - 1;
57+
n = (n - 1).max(2);
5858
some_complement_is_failing = true;
5959
break;
6060
}

0 commit comments

Comments
 (0)