Skip to content

Commit 17db736

Browse files
committed
make wrapping_offset
1 parent 156108d commit 17db736

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/compress/zstd_double_fast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ unsafe fn ZSTD_compressBlock_doubleFast_dictMatchState_generic(
697697
dictMatchIndexAndTagL3 as size_t,
698698
dictHashAndTagL3,
699699
);
700-
let mut matchL3 = base.offset(matchIndexL3 as isize);
700+
let mut matchL3 = base.wrapping_offset(matchIndexL3 as isize);
701701
*hashLong.add(hl3) = curr.wrapping_add(1);
702702
if matchIndexL3 >= prefixLowestIndex
703703
&& MEM_read64(matchL3 as *const core::ffi::c_void)

0 commit comments

Comments
 (0)