Skip to content

Commit 3906454

Browse files
committed
zdict.rs: remove memcpy
1 parent fa1049e commit 3906454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dictBuilder/zdict.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ unsafe fn finalize_dictionary(
13221322
outDictContent,
13231323
dictContentSize,
13241324
);
1325-
core::ptr::copy_nonoverlapping(header.as_mut_ptr(), outDictHeader, hSize);
1325+
core::ptr::copy_nonoverlapping(header.as_ptr(), outDictHeader, hSize);
13261326
core::ptr::write_bytes(outDictPadding, 0, paddingSize);
13271327
Ok(dictSize)
13281328
}

0 commit comments

Comments
 (0)