Skip to content

Commit

Permalink
Remove unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 25, 2024
1 parent cd75724 commit d4484d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ where I: Copy + From<u8> + From<u64> + NumAssign + PartialOrd
if n < r {
panic!("Out of function's bounds");
}
if n < MAX_FACTORIAL[size_of::<I>() as usize] as usize {
if n < MAX_FACTORIAL[size_of::<I>()] as usize {
return factorial::<I>(n as u8) / factorial::<I>(r as u8);
}
// slow path for larger numbers
Expand Down

0 comments on commit d4484d6

Please sign in to comment.