Skip to content

Commit b52286e

Browse files
authored
Merge pull request #21 from HerodotusDev/audit-fixes
Audit 2 fixes
2 parents 0db686d + f1d8d57 commit b52286e

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/utils/types/words64.cairo

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ impl Words64Impl of Words64Trait {
9898
// start: 5 | len: 17
9999
// output: [0x3295abcdef123456, 0x2576758493478594, 0x54]
100100
fn slice_le(self: Words64, start: usize, len: usize) -> Words64 {
101-
if len == 0 {
102-
return ArrayTrait::new().span();
103-
}
104101
let (q, n_ending_bytes) = DivRem::div_rem(
105102
len, TryInto::<usize, NonZero<usize>>::try_into(8).unwrap()
106103
);

0 commit comments

Comments
 (0)