Skip to content

Commit

Permalink
remove unnecessary type conversions (#1411)
Browse files Browse the repository at this point in the history
  • Loading branch information
wodray authored Jul 14, 2024
1 parent ff6d42b commit 2758e06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ fn linear_log_recur(n: i32) -> i32 {
return 1;
}
let mut count = linear_log_recur(n / 2) + linear_log_recur(n / 2);
for _ in 0..n as i32 {
for _ in 0..n {
count += 1;
}
return count;
Expand Down

0 comments on commit 2758e06

Please sign in to comment.