We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 164a05a commit c4b7226Copy full SHA for c4b7226
1 file changed
simulation/amaru-sim/src/simulator/shrink.rs
@@ -54,7 +54,7 @@ pub fn shrink<A: Debug + Clone, B: Debug>(
54
number_of_shrinks += 1;
55
last_error = result;
56
input = complement;
57
- n = n.max(2) - 1;
+ n = (n - 1).max(2);
58
some_complement_is_failing = true;
59
break;
60
}
0 commit comments