Skip to content

Commit 4e408c1

Browse files
committed
cleanup
1 parent f23a055 commit 4e408c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/dictBuilder/zdict.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub unsafe extern "C" fn ZDICT_getDictID(
9090
if MEM_readLE32(dictBuffer) != ZSTD_MAGIC_DICTIONARY {
9191
return 0;
9292
}
93-
MEM_readLE32((dictBuffer as *const core::ffi::c_char).add(4) as *const core::ffi::c_void)
93+
MEM_readLE32(dictBuffer.byte_add(4))
9494
}
9595

9696
#[cfg_attr(feature = "export-symbols", export_name = crate::prefix!(ZDICT_getDictHeaderSize))]
@@ -142,6 +142,7 @@ unsafe fn ZDICT_initDictItem(d: *mut dictItem) {
142142
(*d).length = 0;
143143
(*d).savings = -(1 as core::ffi::c_int) as u32;
144144
}
145+
145146
const LLIMIT: core::ffi::c_int = 64;
146147
const MINMATCHLENGTH: core::ffi::c_int = 7;
147148
unsafe fn ZDICT_analyzePos(

0 commit comments

Comments
 (0)