Skip to content

Commit

Permalink
limit swap() arity to 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
tomara-x committed Jul 31, 2024
1 parent 16f7a6f commit 77baf38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,7 @@ pub fn process(
let params = params.split(',').collect::<Vec<&str>>();
for s in params {
if let Ok(n) = s.parse::<usize>() {
p.push(n);
p.push(std::cmp::Ord::min(n,1000));
}
}
}
Expand Down

0 comments on commit 77baf38

Please sign in to comment.