File tree 1 file changed +4
-4
lines changed
src/enc/backward_references 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -679,17 +679,17 @@ impl<Alloc: alloc::Allocator<u16> + alloc::Allocator<u32>> AnyHasher for H9<Allo
679
679
}
680
680
#[ inline( always) ]
681
681
fn HashBytes ( & self , data : & [ u8 ] ) -> usize {
682
- let h: u32 = BROTLI_UNALIGNED_LOAD32 ( data) . wrapping_mul ( kHashMul32 ) ;
683
- let thirty_two : usize = 32 ;
682
+ let h: u64 = ( BROTLI_UNALIGNED_LOAD32 ( data) as u64 | ( ( data [ 4 ] as u64 ) << 32 ) ) . wrapping_mul ( kHashMul64Long ) ;
683
+ let thirty_two : usize = 64 ;
684
684
( h >> ( thirty_two. wrapping_sub ( H9_BUCKET_BITS ) ) ) as usize
685
685
}
686
686
#[ inline( always) ]
687
687
fn HashTypeLength ( & self ) -> usize {
688
- 4
688
+ 5
689
689
}
690
690
#[ inline( always) ]
691
691
fn StoreLookahead ( & self ) -> usize {
692
- 4
692
+ 5
693
693
}
694
694
fn PrepareDistanceCache ( & self , distance_cache : & mut [ i32 ] ) {
695
695
let num_distances = H9_NUM_LAST_DISTANCES_TO_CHECK as i32 ;
You can’t perform that action at this time.
0 commit comments