Skip to content

Commit

Permalink
Remove unnecessary if check from slice_le
Browse files Browse the repository at this point in the history
  • Loading branch information
fmkra committed Jun 20, 2024
1 parent 0db686d commit f1d8d57
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/utils/types/words64.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ impl Words64Impl of Words64Trait {
// start: 5 | len: 17
// output: [0x3295abcdef123456, 0x2576758493478594, 0x54]
fn slice_le(self: Words64, start: usize, len: usize) -> Words64 {
if len == 0 {
return ArrayTrait::new().span();
}
let (q, n_ending_bytes) = DivRem::div_rem(
len, TryInto::<usize, NonZero<usize>>::try_into(8).unwrap()
);
Expand Down

0 comments on commit f1d8d57

Please sign in to comment.