We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
wrapping_offset
1 parent 156108d commit 17db736Copy full SHA for 17db736
lib/compress/zstd_double_fast.rs
@@ -697,7 +697,7 @@ unsafe fn ZSTD_compressBlock_doubleFast_dictMatchState_generic(
697
dictMatchIndexAndTagL3 as size_t,
698
dictHashAndTagL3,
699
);
700
- let mut matchL3 = base.offset(matchIndexL3 as isize);
+ let mut matchL3 = base.wrapping_offset(matchIndexL3 as isize);
701
*hashLong.add(hl3) = curr.wrapping_add(1);
702
if matchIndexL3 >= prefixLowestIndex
703
&& MEM_read64(matchL3 as *const core::ffi::c_void)
0 commit comments