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.
1 parent f23a055 commit 4e408c1Copy full SHA for 4e408c1
lib/dictBuilder/zdict.rs
@@ -90,7 +90,7 @@ pub unsafe extern "C" fn ZDICT_getDictID(
90
if MEM_readLE32(dictBuffer) != ZSTD_MAGIC_DICTIONARY {
91
return 0;
92
}
93
- MEM_readLE32((dictBuffer as *const core::ffi::c_char).add(4) as *const core::ffi::c_void)
+ MEM_readLE32(dictBuffer.byte_add(4))
94
95
96
#[cfg_attr(feature = "export-symbols", export_name = crate::prefix!(ZDICT_getDictHeaderSize))]
@@ -142,6 +142,7 @@ unsafe fn ZDICT_initDictItem(d: *mut dictItem) {
142
(*d).length = 0;
143
(*d).savings = -(1 as core::ffi::c_int) as u32;
144
145
+
146
const LLIMIT: core::ffi::c_int = 64;
147
const MINMATCHLENGTH: core::ffi::c_int = 7;
148
unsafe fn ZDICT_analyzePos(
0 commit comments